[MacRuby] #770: IO#gets is broken when specified limit.
#770: IO#gets is broken when specified limit. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ $ cat test_gets.rb File.open("tmp.txt", "w") { |f| f.puts "Hello World!" } File.open("tmp.txt", "r") { |f| p f.gets(128) } File.open("tmp.txt", "r") { |f| p f.gets('!', 128) } }}} Ruby 1.9.1's Result: {{{ $ ruby -v test_gets.rb ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-darwin10] "Hello World!\n" "Hello World!" }}} MacRuby Trunk's Result: {{{ $ macruby -v test_gets.rb MacRuby 0.7 (ruby 1.9.2) [universal-darwin10.0, x86_64] "Hello World!\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" "Hello World!\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/770> MacRuby <http://macruby.org/>
#770: IO#gets is broken when specified limit. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Comment(by watson1978@…): It seems this issue blocks a #753. -- Ticket URL: <http://www.macruby.org/trac/ticket/770#comment:1> MacRuby <http://macruby.org/>
#770: IO#gets is broken when specified limit. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Fixed with r4338 -- Ticket URL: <http://www.macruby.org/trac/ticket/770#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby