diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-13 08:10:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-13 08:10:28 +0000 |
commit | 21ae83c43e7ed769dddc11b756bd087a4b06613c (patch) | |
tree | 20943db9920050d311f0b5024cd9a39ace351e45 /lib/rexml | |
parent | 56de0f7f78d5da4ca0ce08864a7ff650db83bcbd (diff) | |
download | ruby-21ae83c43e7ed769dddc11b756bd087a4b06613c.tar.gz ruby-21ae83c43e7ed769dddc11b756bd087a4b06613c.tar.xz ruby-21ae83c43e7ed769dddc11b756bd087a4b06613c.zip |
* hash.c (rb_hash_compare_by_identity): rename Hash#identical to
Hash#compare_by_identity.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/encodings/UTF-16.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/encodings/UTF-16.rb b/lib/rexml/encodings/UTF-16.rb index 792adfd44..007c493d9 100644 --- a/lib/rexml/encodings/UTF-16.rb +++ b/lib/rexml/encodings/UTF-16.rb @@ -16,7 +16,7 @@ module REXML end def decode_utf16(str) - str = str[2..-1] if /^\376\377/ =~ str + str = str[2..-1] if /^\376\377/n =~ str array_enc=str.unpack('C*') array_utf8 = [] 0.step(array_enc.size-1, 2){|i| |