зеркало из https://github.com/github/ruby.git
Revert r37358
* lib/rexml/source.rb (REXML::IOSource#initialize): Use encode("UTF-16XX") instead of UTF-16XX encoded byte string by hand. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
054ae037e6
Коммит
f774c96beb
|
@ -1,9 +1,3 @@
|
|||
Sun Oct 28 19:54:43 2012 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/rexml/source.rb (REXML::IOSource#initialize): Use
|
||||
encode("UTF-16XX") instead of UTF-16XX encoded byte string by
|
||||
hand.
|
||||
|
||||
Sun Oct 28 19:12:11 2012 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_parse.c (iso8601_{ext,bas}_time): should not match
|
||||
|
|
|
@ -149,9 +149,9 @@ module REXML
|
|||
if encoding
|
||||
self.encoding = encoding
|
||||
elsif str[0,2] == "\xfe\xff"
|
||||
@line_break = ">".encode("UTF-16BE")
|
||||
@line_break = "\000>"
|
||||
elsif str[0,2] == "\xff\xfe"
|
||||
@line_break = ">".encode("UTF-16LE")
|
||||
@line_break = ">\000"
|
||||
elsif str[0,2] == "\xef\xbb"
|
||||
str += @source.read(1)
|
||||
str = '' if (str[2,1] == "\xBF")
|
||||
|
|
Загрузка…
Ссылка в новой задаче