diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_io_m17n.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 087f8c4483..237698b868 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 |