From 544c019df27d721b6707b15f72f9603bd4950532 Mon Sep 17 00:00:00 2001 From: knu Date: Fri, 18 Apr 2008 07:22:13 +0000 Subject: * lib/rexml: Merge fixes since 1.8.6 made solely on the ruby_1_8_6 branch. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/encodings/UTF-16.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rexml/encodings/UTF-16.rb') 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