From 7aa83cd0f88743443da35d202a94b64fcadf3b6c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 9 Apr 2016 00:59:53 +0000 Subject: [PATCH] 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 --- test/ruby/test_io_m17n.rb | 4 ++-- 1 file 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} } }