From af48419af6d68ab47492e6e40718f9a5714e92be Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 28 Oct 2008 12:01:46 +0000 Subject: * test/ruby/test_io_m17n.rb (test_getc_invalid3): should set binmode if enc is not compatible with ASCII. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io_m17n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 8b7c3363d..71299181e 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -677,7 +677,7 @@ EOT 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") -- cgit