summaryrefslogtreecommitdiff
path: root/test/ruby/test_argf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_argf.rb')
-rw-r--r--test/ruby/test_argf.rb2
1 files changed, 2 insertions, 0 deletions
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")