diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-09 00:59:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-09 00:59:53 +0000 |
commit | 7aa83cd0f88743443da35d202a94b64fcadf3b6c (patch) | |
tree | 9017643d6e08f79bbcc737b68ef6dc49b6ffc926 /test | |
parent | 40c833297d0a56c351adcb5f77bb754471615b41 (diff) |
test_io_m17n.rb: nil default internal encoding
* test/ruby/test_io_m17n.rb (test_bom_non_utf): ensure default
internal encoding is not set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io_m17n.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index c0c3742460..cd45329170 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -2122,8 +2122,8 @@ EOT assert_equal(Encoding::US_ASCII, enc) tlhInganHol = "\u{f8e4 f8d9 f8d7 f8dc f8d0 f8db} \u{f8d6 f8dd f8d9}" - EnvUtil.with_default_external(Encoding::UTF_8) { - assert_warn(/#{tlhInganHol}/) { + assert_warn(/#{tlhInganHol}/) { + EnvUtil.with_default_internal(nil) { open(IO::NULL, "w:bom|#{tlhInganHol}") {|f| enc = f.external_encoding} } } |