[MacRuby] #431: Seg fault evaluating an escaped unicode string
#431: Seg fault evaluating an escaped unicode string ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- {{{ $ macruby -e '"\xFC\u20AC"' Segmentation fault }}} the € only string does not crash, nevertheless the output is not correct: {{{ $ macruby -e 'p "\u20AC"' "¬" }}} while ruby1.9 is OK: {{{ $ ruby1.9 -e 'p "\u20AC"' "€" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/431> MacRuby <http://macruby.org/>
#431: Seg fault evaluating an escaped unicode string ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): As of r3863, it still crashes. But the euro symbol seems good. {{{ $ ./miniruby -e 'p "\u20AC"' "€" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/431#comment:1> MacRuby <http://macruby.org/>
#431: Seg fault evaluating an escaped unicode string ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): I changed the parser to not crash anymore. {{{ $ ./miniruby -e 'p "\xFC\u20AC"' -e:1: mixed error p "\xFC\u20AC" ^ }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/431#comment:2> MacRuby <http://macruby.org/>
#431: Seg fault evaluating an escaped unicode string ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------+----------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 0.5 => MacRuby 0.6 Comment: After talking with Vincent it turns out that these checks are useless in MacRuby, since we parse everything as UTF8. I removed them in r3865 and now we no longer crash (or raise an exception for that matter). -- Ticket URL: <http://www.macruby.org/trac/ticket/431#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby