diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-09 17:44:13 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-09 17:44:13 +0000 |
commit | 53ea32d9ccb9fcc1b28757b99822039c8c793803 (patch) | |
tree | 3d5c3539ac3b78cc7d50823de750f636db3f4bf1 /test/ruby/test_io_m17n.rb | |
parent | bca61e89f5258a5bdfbd0b4cc9823f358d9f8ef5 (diff) | |
download | ruby-53ea32d9ccb9fcc1b28757b99822039c8c793803.tar.gz ruby-53ea32d9ccb9fcc1b28757b99822039c8c793803.tar.xz ruby-53ea32d9ccb9fcc1b28757b99822039c8c793803.zip |
* io.c (rb_io_binmode): should not alter encoding. [ruby-dev:32918]
* io.c (io_read_encoding): need not to return ASCII-8BIT for
binary IO.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r-- | test/ruby/test_io_m17n.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index 748050afe..8646e6c6a 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -58,7 +58,7 @@ EOT with_tmpdir { generate_file('tmp', "") open("tmp", "rb") {|f| - assert_equal(Encoding::ASCII_8BIT, f.external_encoding) + assert_equal(Encoding.default_external, f.external_encoding) assert_equal(nil, f.internal_encoding) } } |