From f7207fa2fcbbe7aebeed9a08f6092ea59d05cdcf Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 21 Aug 2009 06:16:53 +0000 Subject: 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@24605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io_m17n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby/test_io_m17n.rb') diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb index aed688e591..6f5e686c42 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 -- cgit v1.2.3