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

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
This commit is contained in:
nobu 2016-04-09 00:59:53 +00:00
parent 40c833297d
commit 7aa83cd0f8

View file

@ -2122,8 +2122,8 @@ EOT
assert_equal(Encoding::US_ASCII, enc) assert_equal(Encoding::US_ASCII, enc)
tlhInganHol = "\u{f8e4 f8d9 f8d7 f8dc f8d0 f8db} \u{f8d6 f8dd f8d9}" 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} open(IO::NULL, "w:bom|#{tlhInganHol}") {|f| enc = f.external_encoding}
} }
} }