[MacRuby] #772: Assertion fails with 4 bytes UTF-8.
#772: Assertion fails with 4 bytes UTF-8. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Assertion fails when I use UTF-8 charactor from U+010000 to U+10FFFF (4 bytes UTF-8). {{{ $ macirb irb(main):001:0> p "\u{010000}".chop Assertion failed: (beg.start_offset_in_bytes != -1), function str_splice, file string.c, line 754. zsh: abort macirb }}} {{{ $ macirb irb(main):001:0> p "\u{10FFFF}".chop Assertion failed: (beg.start_offset_in_bytes != -1), function str_splice, file string.c, line 754. zsh: abort macirb }}} {{{ $ macirb irb(main):001:0> p "\u{010000}".reverse Assertion failed: (U_SUCCESS(err)), function str_ucnv_make_data_binary, file ucnv.c, line 96. zsh: abort macirb }}} {{{ $ macirb irb(main):001:0> p "\u{10FFFF}".reverse Assertion failed: (U_SUCCESS(err)), function str_ucnv_make_data_binary, file ucnv.c, line 96. zsh: abort macirb }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/772> MacRuby <http://macruby.org/>
#772: Assertion fails with 4 bytes UTF-8. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: vincent.isambart@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * owner: lsansonetti@… => vincent.isambart@… Comment: Looks like we properly encode the sequence, so I guess it's a bug somewhere else. {{{ $ macruby -e 'p "\u{010000}".bytes.to_a' [240, 144, 128, 128] $ ruby1.9 -e 'p "\u{010000}".bytes.to_a' [240, 144, 128, 128] }}} Vincent do you have an idea? -- Ticket URL: <http://www.macruby.org/trac/ticket/772#comment:1> MacRuby <http://macruby.org/>
#772: Assertion fails with 4 bytes UTF-8. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: vincent.isambart@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by vincent.isambart@…): Correction: calling str_unset_facultative_flags(str) in rstr_reverse_bang does not fix the assert for #reverse. It must really be modified to handle properly non-BMP characters. -- Ticket URL: <http://www.macruby.org/trac/ticket/772#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby