ruby-changes:3164
From: ko1@a...
Date: 25 Dec 2007 13:24:43 +0900
Subject: [ruby-changes:3164] akr - Ruby:r14656 (trunk): * test/ruby/test_io_m17n.rb (test_write_noenc): don't mix text and
akr 2007-12-25 13:24:21 +0900 (Tue, 25 Dec 2007) New Revision: 14656 Modified files: trunk/ChangeLog trunk/test/ruby/test_io_m17n.rb Log: * test/ruby/test_io_m17n.rb (test_write_noenc): don't mix text and binary mode. [ruby-dev:32743] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14656&r2=14655 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_io_m17n.rb?r1=14656&r2=14655 Index: ChangeLog =================================================================== --- ChangeLog (revision 14655) +++ ChangeLog (revision 14656) @@ -1,3 +1,8 @@ +Tue Dec 25 13:23:13 2007 Tanaka Akira <akr@f...> + + * test/ruby/test_io_m17n.rb (test_write_noenc): don't mix text and + binary mode. [ruby-dev:32743] + Tue Dec 25 13:13:09 2007 Yukihiro Matsumoto <matz@r...> * README.EXT.ja, dir.c, eval.c, eval_intern.h, lex.c.src, Index: test/ruby/test_io_m17n.rb =================================================================== --- test/ruby/test_io_m17n.rb (revision 14655) +++ test/ruby/test_io_m17n.rb (revision 14656) @@ -300,14 +300,14 @@ end def test_write_noenc - src = "\xc2\xa1\n" + src = "\xc2\xa1\n".force_encoding("ascii-8bit") with_tmpdir { open('tmp', "w") {|f| ENCS.each {|enc| f.write src.dup.force_encoding(enc) } } - open('tmp', 'rb') {|f| + open('tmp', 'r:ascii-8bit') {|f| assert_equal(src*ENCS.length, f.read) } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml