summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 03:26:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 03:26:32 +0000
commit3228e95d5fafa986e8c1188b8d0b69238acb7a85 (patch)
tree18896cdaad33fc19707d85ece0b0aeb0ddc4b5b0
parentaa99656e5b79c20988b92b019d48b2766432f151 (diff)
downloadruby-3228e95d5fafa986e8c1188b8d0b69238acb7a85.tar.gz
ruby-3228e95d5fafa986e8c1188b8d0b69238acb7a85.tar.xz
ruby-3228e95d5fafa986e8c1188b8d0b69238acb7a85.zip
* 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/trunk@19979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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")