mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/telnet.rb: Fixing Telnet#wairfor() which was broken by changes to
the Kernel::Integer() method. [ruby-core:17272] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e30cdad08
commit
b2c5258b85
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Jun 17 23:04:24 2008 James Edward Gray II <jeg2@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/net/telnet.rb: Fixing Telnet#wairfor() which was broken by changes to
|
||||||
|
the Kernel::Integer() method. [ruby-core:17272]
|
||||||
|
|
||||||
Tue Jun 17 23:02:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Jun 17 23:02:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ruby.c (opt_W_getter): made a hooked variable.
|
* ruby.c (opt_W_getter): made a hooked variable.
|
||||||
|
|
|
@ -564,8 +564,8 @@ module Net
|
||||||
@dumplog.log_dump('<', c) if @options.has_key?("Dump_log")
|
@dumplog.log_dump('<', c) if @options.has_key?("Dump_log")
|
||||||
if @options["Telnetmode"]
|
if @options["Telnetmode"]
|
||||||
c = rest + c
|
c = rest + c
|
||||||
if Integer(c.rindex(/#{IAC}#{SE}/no)) <
|
if Integer(c.rindex(/#{IAC}#{SE}/no) || 0) <
|
||||||
Integer(c.rindex(/#{IAC}#{SB}/no))
|
Integer(c.rindex(/#{IAC}#{SB}/no) || 0)
|
||||||
buf = preprocess(c[0 ... c.rindex(/#{IAC}#{SB}/no)])
|
buf = preprocess(c[0 ... c.rindex(/#{IAC}#{SB}/no)])
|
||||||
rest = c[c.rindex(/#{IAC}#{SB}/no) .. -1]
|
rest = c[c.rindex(/#{IAC}#{SB}/no) .. -1]
|
||||||
elsif pt = c.rindex(/#{IAC}[^#{IAC}#{AO}#{AYT}#{DM}#{IP}#{NOP}]?\z/no) ||
|
elsif pt = c.rindex(/#{IAC}[^#{IAC}#{AO}#{AYT}#{DM}#{IP}#{NOP}]?\z/no) ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue