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 | 62f8f1419c2d666a113d02f021c20673a0f49d48 (patch) | |
tree | 20943db9920050d311f0b5024cd9a39ace351e45 /lib/rexml/encodings | |
parent | 5cb7d10ee065d6141a6d6e796aecbb278b54f171 (diff) | |
download | ruby-62f8f1419c2d666a113d02f021c20673a0f49d48.tar.gz |
* hash.c (rb_hash_compare_by_identity): rename Hash#identical to
Hash#compare_by_identity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/encodings')
-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 792adfd44d..007c493d9c 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| |