summaryrefslogtreecommitdiff
path: root/test/ruby/test_io_m17n.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r--test/ruby/test_io_m17n.rb4
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}
}
}