ruby-changes:8465
From: usa <ko1@a...>
Date: Tue, 28 Oct 2008 21:01:54 +0900 (JST)
Subject: [ruby-changes:8465] Ruby:r19997 (trunk): * test/ruby/test_io_m17n.rb (test_getc_invalid3): should set binmode if enc is
usa 2008-10-28 21:01:46 +0900 (Tue, 28 Oct 2008) New Revision: 19997 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19997 Log: * test/ruby/test_io_m17n.rb (test_getc_invalid3): should set binmode if enc is not compatible with ASCII. Modified files: trunk/test/ruby/test_io_m17n.rb Index: test/ruby/test_io_m17n.rb =================================================================== --- test/ruby/test_io_m17n.rb (revision 19996) +++ test/ruby/test_io_m17n.rb (revision 19997) @@ -677,7 +677,7 @@ end def test_getc_invalid3 - with_pipe("utf-16le:euc-jp") {|r, w| + with_pipe("utf-16le:euc-jp", binmode: true) {|r, w| before1 = "\x42\x30".force_encoding("utf-16le") before2 = "\x44\x30".force_encoding("utf-16le") invalid = "\x00\xd8".force_encoding("utf-16le") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/