ruby-changes:8447
From: usa <ko1@a...>
Date: Tue, 28 Oct 2008 12:26:48 +0900 (JST)
Subject: [ruby-changes:8447] Ruby:r19979 (trunk): * test/ruby/test_argf.rb (test_readpartial2): readpartial works just like
usa 2008-10-28 12:26:32 +0900 (Tue, 28 Oct 2008) New Revision: 19979 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19979 Log: * test/ruby/test_argf.rb (test_readpartial2): readpartial works just like binmode, so input of it should be binmode'ed. Modified files: trunk/test/ruby/test_argf.rb Index: test/ruby/test_argf.rb =================================================================== --- test/ruby/test_argf.rb (revision 19978) +++ test/ruby/test_argf.rb (revision 19979) @@ -490,9 +490,11 @@ t = ""; ARGF.readpartial(1, t); s << t end rescue EOFError + $stdout.binmode puts s end SRC + f.binmode f.puts("foo") f.puts("bar") f.puts("baz") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/