#150: invalid strings with IO.pipe and readline
----------------------------------------------+-----------------------------
Reporter: [EMAIL PROTECTED] | Owner: [EMAIL PROTECTED]
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/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel