1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_io_m17n.rb (test_getc_invalid3): should set binmode if enc is

not compatible with ASCII.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2008-10-28 12:01:46 +00:00
parent f3ac3e8774
commit 7994aaa1f3

View file

@ -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")