[MacRuby] #352: macirb does not eval UTF-String
#352: macirb does not eval UTF-String ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------+--------------------------------------------------- {{{ $ echo 'p "Rübe"' | macirb p "Rübe" SyntaxError: (irb):1: unterminated string meets end of file from core:in `eval:' from core:in `evaluate:' }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/352> MacRuby <http://macruby.org/>
#352: macirb does not eval UTF-String ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------+--------------------------------------------------- Old description:
{{{ $ echo 'p "Rübe"' | macirb p "Rübe" SyntaxError: (irb):1: unterminated string meets end of file from core:in `eval:' from core:in `evaluate:' }}}
New description: {{{ $ echo 'p "Rübe"' | macirb p "Rübe" SyntaxError: (irb):1: unterminated string meets end of file from core:in `eval:' from core:in `evaluate:' }}} -- Comment(by mattaimonetti@…): confirmed -- Ticket URL: <http://www.macruby.org/trac/ticket/352#comment:1> MacRuby <http://macruby.org/>
#352: macirb does not eval UTF-String ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------+--------------------------------------------------- Comment(by lsansonetti@…): irb cannot handle multibyte strings because of a limitation of our readline implementation (libedit), but here it seems to be a different problem (the string is given as an argument and not from stdin). -- Ticket URL: <http://www.macruby.org/trac/ticket/352#comment:2> MacRuby <http://macruby.org/>
#352: macirb does not eval UTF-String ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------+--------------------------------------------------- Comment(by dev@…): Replying to [comment:2 lsansonetti@…]:
irb cannot handle multibyte strings because of a limitation of our readline implementation (libedit), but here it seems to be a different problem (the string is given as an argument and not from stdin).
but typing it in macirb directly gives the same result: {{{ $ macirb irb(main):001:0> p "Rübe" SyntaxError: (irb):1: unterminated string meets end of file from core:in `eval:' from core:in `evaluate: }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/352#comment:3> MacRuby <http://macruby.org/>
#352: macirb does not eval UTF-String ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ------------------------+--------------------------------------------------- Comment(by wanthalf@…): I cannot even enter some letters - I get only questionmarks. Why do you not just compile MacRuby with the real "readline" instead of "libedit", which is buggy and missing a lot of features? -- Ticket URL: <http://www.macruby.org/trac/ticket/352#comment:4> MacRuby <http://macruby.org/>
#352: macirb does not eval UTF-String ------------------------+--------------------------------------------------- Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ------------------------+--------------------------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 0.5 => Comment: We do use libedit because it's what's available on Mac OS X by default. Readline isn't bundled because of licensing issues. We are aware that libedit misses functionality (the biggest problem is certainly missing support for multibyte characters). But this isn't a MacRuby problem, you should report this to Apple using http://bugreporter.apple.com. Alternatively, in trunk (future 0.7) there is a new irb implementation (called DietRB) and it is possible to plug some pure-ruby readline code on top of it, fixing the multibyte input problems. -- Ticket URL: <http://www.macruby.org/trac/ticket/352#comment:5> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby