ruby-changes:5903
From: usa <ko1@a...>
Date: Wed, 18 Jun 2008 18:45:49 +0900 (JST)
Subject: [ruby-changes:5903] Ruby:r17411 (trunk): * test/ruby/test_io.rb (test_copy_stream_dst_rbuf): set binmode.
usa 2008-06-18 18:45:41 +0900 (Wed, 18 Jun 2008) New Revision: 17411 Modified files: trunk/test/ruby/test_io.rb Log: * test/ruby/test_io.rb (test_copy_stream_dst_rbuf): set binmode. * test/ruby/test_io.rb (make_tempfile): set binmode. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_io.rb?r1=17411&r2=17410&diff_format=u Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 17410) +++ test/ruby/test_io.rb (revision 17411) @@ -536,7 +536,7 @@ with_pipe {|r, w| w << "xyz" w.close - File.open("fom", "w+") {|f| + File.open("fom", "w+b") {|f| f.write "abcd\n" f.rewind assert_equal("abc", f.read(3)) @@ -773,6 +773,7 @@ def make_tempfile t = Tempfile.new("foo") + t.binmode t.puts "foo" t.puts "bar" t.puts "baz" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/