[macruby-changes] [3778] MacRuby/trunk/lib/rexml/encodings/UTF-16.rb
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 16 17:26:15 PDT 2010
Revision: 3778
http://trac.macosforge.org/projects/ruby/changeset/3778
Author: lsansonetti at 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|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100316/f11c92b5/attachment.html>
More information about the macruby-changes
mailing list