summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io_m17n.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb
index 087f8c448..237698b86 100644
--- a/test/ruby/test_io_m17n.rb
+++ b/test/ruby/test_io_m17n.rb
@@ -823,6 +823,18 @@ EOT
f.set_encoding("iso-2022-jp")
}
}
+ assert_nothing_raised {
+ open("/dev/null", "r") {|f|
+ f.binmode
+ f.set_encoding("iso-2022-jp")
+ }
+ }
+ assert_nothing_raised {
+ open("/dev/null", "rt") {|f|
+ f.binmode
+ f.set_encoding("iso-2022-jp")
+ }
+ }
end
def test_write_conversion_fixenc