summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_argf.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-29 16:00:59 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-29 16:00:59 +0000
commit235fefed5156a88b037af69835ae39c631b6edeb (patch)
tree02e50e2f0bbe5c5533142bc903cdc09551ad6832 /test/ruby/test_argf.rb
parent21ce1c594b7359ad217f18d1ef01b000de5d5041 (diff)
downloadruby-235fefed5156a88b037af69835ae39c631b6edeb.tar.gz
ruby-235fefed5156a88b037af69835ae39c631b6edeb.tar.xz
ruby-235fefed5156a88b037af69835ae39c631b6edeb.zip
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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 2cfcd0328..9e18a80b4 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")