[前][次][番号順一覧][スレッド一覧]

ruby-changes:42446

From: nobu <ko1@a...>
Date: Sat, 9 Apr 2016 09:03:16 +0900 (JST)
Subject: [ruby-changes:42446] nobu:r54520 (trunk): test_io_m17n.rb: nil default internal encoding

nobu	2016-04-09 09:59:53 +0900 (Sat, 09 Apr 2016)

  New Revision: 54520

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54520

  Log:
    test_io_m17n.rb: nil default internal encoding
    
    * test/ruby/test_io_m17n.rb (test_bom_non_utf): ensure default
      internal encoding is not set.

  Modified files:
    trunk/test/ruby/test_io_m17n.rb
Index: test/ruby/test_io_m17n.rb
===================================================================
--- test/ruby/test_io_m17n.rb	(revision 54519)
+++ test/ruby/test_io_m17n.rb	(revision 54520)
@@ -2122,8 +2122,8 @@ EOT https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io_m17n.rb#L2122
     assert_equal(Encoding::US_ASCII, enc)
 
     tlhInganHol = "\u{f8e4 f8d9 f8d7 f8dc f8d0 f8db} \u{f8d6 f8dd f8d9}"
-    EnvUtil.with_default_external(Encoding::UTF_8) {
-      assert_warn(/#{tlhInganHol}/) {
+    assert_warn(/#{tlhInganHol}/) {
+      EnvUtil.with_default_internal(nil) {
         open(IO::NULL, "w:bom|#{tlhInganHol}") {|f| enc = f.external_encoding}
       }
     }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]