diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-21 06:16:53 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-21 06:16:53 +0000 |
commit | 96c36fbdb1a7da3c1e00dfa019b27598f397e097 (patch) | |
tree | fa33c6ae2a83171400f7c4d110352b95490e9a3a /test | |
parent | f16158b9a5247f70fff2e43deefdfeac11fce0e5 (diff) | |
download | ruby-96c36fbdb1a7da3c1e00dfa019b27598f397e097.tar.gz ruby-96c36fbdb1a7da3c1e00dfa019b27598f397e097.tar.xz ruby-96c36fbdb1a7da3c1e00dfa019b27598f397e097.zip |
Change modestr syntax for BOM to "BOM|UTF-*".
* io .c (rb_io_fmode_modestr): change modestr syntax for BOM
to "BOM|UTF-*".
* io.c (parse_mode_enc): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 aed688e59..6f5e686c4 100644 --- a/test/ruby/test_io_m17n.rb +++ b/test/ruby/test_io_m17n.rb @@ -1699,7 +1699,7 @@ EOT path = '%s-bom.txt' % name content = text.encode(name) generate_file(path, content) - result = File.read(path, mode: 'rb:utf-7-bom') + result = File.read(path, mode: 'rb:BOM|UTF-8') assert_equal(content[1].force_encoding("ascii-8bit"), result.force_encoding("ascii-8bit")) end |