* 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/trunk@19979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ed276bfc89
commit
d324a46784
@ -490,9 +490,11 @@ class TestArgf < Test::Unit::TestCase
|
|||||||
t = ""; ARGF.readpartial(1, t); s << t
|
t = ""; ARGF.readpartial(1, t); s << t
|
||||||
end
|
end
|
||||||
rescue EOFError
|
rescue EOFError
|
||||||
|
$stdout.binmode
|
||||||
puts s
|
puts s
|
||||||
end
|
end
|
||||||
SRC
|
SRC
|
||||||
|
f.binmode
|
||||||
f.puts("foo")
|
f.puts("foo")
|
||||||
f.puts("bar")
|
f.puts("bar")
|
||||||
f.puts("baz")
|
f.puts("baz")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user