From 53ea32d9ccb9fcc1b28757b99822039c8c793803 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 9 Jan 2008 17:44:13 +0000 Subject: * 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 --- test/ruby/test_io_m17n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') 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) } } -- cgit