[MacRuby-devel] [MacRuby] #827: Assertion fails when calls String#tr and String#tr! with replace string to above-mentioned "\u0000FFFF".
MacRuby
ruby-noreply at macosforge.org
Thu Aug 5 01:25:52 PDT 2010
#827: Assertion fails when calls String#tr and String#tr! with replace string to
above-mentioned "\u0000FFFF".
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
$ cat test_string.rb
string = "abcd"
p string.tr("d", "\u0000FFFE")
p string.tr("d", "\u0000FFFF")
p string.tr!("d", "\u0000FFFE")
p string.tr!("d", "\u0000FFFF")
}}}
Result of Ruby 1.9.1:
{{{
$ ruby test_string.rb
"abcþ"
"abcÿ"
"abcþ"
nil
}}}
Result of MacRuby Trunk:
{{{
$ macruby test_string.rb
"abc\xFFFE"
Assertion failed: (repl_buflen > 0), function
create_translate_charset_table, file string.c, line 5152.
zsh: abort macruby test_string.rb
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/827>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list