summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io_m17n.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb
index d3de901f6f..9a8236a5c3 100644
--- a/test/ruby/test_io_m17n.rb
+++ b/test/ruby/test_io_m17n.rb
@@ -342,7 +342,7 @@ EOT
w.close
s = r.read
assert_equal(Encoding.default_external, s.encoding)
- assert_str_equal(utf8, s)
+ assert_str_equal(utf8.dup.force_encoding(Encoding.default_external), s)
}
with_pipe("EUC-JP") {|r,w|