summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 12:01:46 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 12:01:46 +0000
commitaf48419af6d68ab47492e6e40718f9a5714e92be (patch)
tree3602fd1f47eca121e4503a975f96ac071917763a /test/ruby
parent966cae23de13505b689303a8c0db4a0e93f6a2d1 (diff)
downloadruby-af48419af6d68ab47492e6e40718f9a5714e92be.tar.gz
ruby-af48419af6d68ab47492e6e40718f9a5714e92be.tar.xz
ruby-af48419af6d68ab47492e6e40718f9a5714e92be.zip
* 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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_io_m17n.rb2
1 files changed, 1 insertions, 1 deletions
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")