From 62f8f1419c2d666a113d02f021c20673a0f49d48 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 13 Sep 2006 08:10:28 +0000 Subject: * 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 --- lib/rexml/encodings/UTF-16.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rexml') 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| -- cgit v1.2.3