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:
parent
f3ac3e8774
commit
7994aaa1f3
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue