зеркало из https://github.com/github/ruby.git
* lib/net/telnet.rb (preprocess): remove NULL unless binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
32c09c2531
Коммит
b19d1e1d98
|
@ -1,3 +1,7 @@
|
|||
Tue Dec 28 17:18:17 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/net/telnet.rb (preprocess): remove NULL unless binmode.
|
||||
|
||||
Tue Dec 28 15:41:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/nkf/nkf-utf8/nkf.c (reinit): should initialize all static
|
||||
|
|
|
@ -438,6 +438,9 @@ module Net
|
|||
# combine EOL into "\n"
|
||||
string = string.gsub(/#{EOL}/no, "\n") unless @options["Binmode"]
|
||||
|
||||
# remove NULL
|
||||
string = string.gsub(/#{NULL}/no, '') unless @options["Binmode"]
|
||||
|
||||
string.gsub(/#{IAC}(
|
||||
[#{IAC}#{AO}#{AYT}#{DM}#{IP}#{NOP}]|
|
||||
[#{DO}#{DONT}#{WILL}#{WONT}]
|
||||
|
|
Загрузка…
Ссылка в новой задаче