[MacRuby] #866: String#strip is broken with string of "UTF-16BE".
MacRuby
ruby-noreply at macosforge.org
Fri Aug 20 07:19:16 PDT 2010
#866: String#strip is broken with string of "UTF-16BE".
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
{{{
#!ruby
$ cat test_strip.rb
p " x ".strip
p " \n\r\t x \t\r\n\n ".strip
p "\x00 0b0 ".force_encoding("UTF-16BE").strip
p "0\x000b0 ".force_encoding("UTF-16BE").strip
}}}
Result of Ruby 1.9.1:
{{{
$ ruby test_strip.rb
"x"
"x"
"0b0 "
"0b0 "
}}}
Result of MacRuby Trunk:
{{{
$ macruby test_strip.rb
"x"
"x"
"ぢ〠"
"ぢ〠"
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/866>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list