diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 04:24:21 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 04:24:21 +0000 |
| commit | 9cd631fa82516792a1f2dea10fde5ab0ef5b9889 (patch) | |
| tree | 74fc70fccfc2555c0898eececb2160f69387ced6 /test/ruby | |
| parent | 2d278922cfcd7c635e222fd554b7c5e73d0213eb (diff) | |
| download | ruby-9cd631fa82516792a1f2dea10fde5ab0ef5b9889.tar.gz ruby-9cd631fa82516792a1f2dea10fde5ab0ef5b9889.tar.xz ruby-9cd631fa82516792a1f2dea10fde5ab0ef5b9889.zip | |
* test/ruby/test_io_m17n.rb (test_write_noenc): don't mix text and
binary mode. [ruby-dev:32743]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_io_m17n.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index e90d1dd91..d3de901f6 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -300,14 +300,14 @@ EOT end def test_write_noenc - src = "\xc2\xa1\n" + src = "\xc2\xa1\n".force_encoding("ascii-8bit") with_tmpdir { open('tmp', "w") {|f| ENCS.each {|enc| f.write src.dup.force_encoding(enc) } } - open('tmp', 'rb') {|f| + open('tmp', 'r:ascii-8bit') {|f| assert_equal(src*ENCS.length, f.read) } } |
