From 0c6ec45001460e65e2ef50360c2090a26939a689 Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 29 Oct 2008 16:00:59 +0000 Subject: [PATCH] merged r19979 from trunk into ruby_1_9_1. * test/ruby/test_argf.rb (test_readpartial2): readpartial works just like binmode, so input of it should be binmode'ed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_argf.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index 2cfcd03287..9e18a80b40 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -490,9 +490,11 @@ class TestArgf < Test::Unit::TestCase 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")