[3778] MacRuby/trunk/lib/rexml/encodings/UTF-16.rb
Revision: 3778 http://trac.macosforge.org/projects/ruby/changeset/3778 Author: lsansonetti@apple.com Date: 2010-03-16 17:26:14 -0700 (Tue, 16 Mar 2010) Log Message: ----------- comment stupid regexp in stupid code Modified Paths: -------------- MacRuby/trunk/lib/rexml/encodings/UTF-16.rb Modified: MacRuby/trunk/lib/rexml/encodings/UTF-16.rb =================================================================== --- MacRuby/trunk/lib/rexml/encodings/UTF-16.rb 2010-03-17 00:03:46 UTC (rev 3777) +++ MacRuby/trunk/lib/rexml/encodings/UTF-16.rb 2010-03-17 00:26:14 UTC (rev 3778) @@ -16,7 +16,8 @@ end def decode_utf16(str) - str = str[2..-1] if /^\376\377/n =~ str + # XXX macruby cannot compile this regexp + #str = str[2..-1] if /^\376\377/n =~ str array_enc=str.unpack('C*') array_utf8 = [] 0.step(array_enc.size-1, 2){|i|
participants (1)
-
source_changes@macosforge.org