[MacRuby] #150: invalid strings with IO.pipe and readline
#150: invalid strings with IO.pipe and readline ----------------------------------------------+----------------------------- Reporter: macosforge@brian.codekitchen.net | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------------------------+----------------------------- Test case: {{{ #!/usr/local/bin/macruby r, w = IO.pipe w.write("test\r\n") l = r.readline("\r\n") puts l.chomp("\r\n").inspect # ruby1.9: "test", macruby: "test\r\n" puts l.match("e")[0].inspect # ruby1.9: "e", macruby: " " }}} Calling readline on an IO.pipe stream with a delimiter causes really odd strings to be returned, they don't behave correctly in a number of cases including the two shown. Possibly an encoding issue? -- Ticket URL: <http://www.macruby.org/trac/ticket/150> MacRuby <http://macruby.org/>
#150: invalid strings with IO.pipe and readline ----------------------------------------------+----------------------------- Reporter: macosforge@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------------------+----------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.5 Comment: Seems to be fixed in trunk. {{{ $ ./miniruby t.rb "test" "e" $ ruby19 t.rb "test" "e" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/150#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby