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

ruby-changes:21120

From: nobu <ko1@a...>
Date: Sat, 3 Sep 2011 13:49:53 +0900 (JST)
Subject: [ruby-changes:21120] nobu:r33169 (ruby_1_9_3, trunk): * test/ruby/test_encoding.rb (test_find): mingw is not Unix, of course.

nobu	2011-09-03 13:49:43 +0900 (Sat, 03 Sep 2011)

  New Revision: 33169

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33169

  Log:
    * test/ruby/test_encoding.rb (test_find): mingw is not Unix, of course.

  Modified files:
    branches/ruby_1_9_3/test/ruby/test_encoding.rb
    trunk/test/ruby/test_encoding.rb

Index: test/ruby/test_encoding.rb
===================================================================
--- test/ruby/test_encoding.rb	(revision 33168)
+++ test/ruby/test_encoding.rb	(revision 33169)
@@ -42,7 +42,7 @@
     assert_nothing_raised{Encoding.find("locale")}
     assert_nothing_raised{Encoding.find("filesystem")}
 
-    if /(?:ms|dar)win/ !~ RUBY_PLATFORM
+    if /(?:ms|dar)win|mingw/ !~ RUBY_PLATFORM
       # Unix's filesystem encoding is default_external
       assert_ruby_status(%w[-EUTF-8:EUC-JP], <<-'EOS')
         exit Encoding.find("filesystem") == Encoding::UTF_8
Index: ruby_1_9_3/test/ruby/test_encoding.rb
===================================================================
--- ruby_1_9_3/test/ruby/test_encoding.rb	(revision 33168)
+++ ruby_1_9_3/test/ruby/test_encoding.rb	(revision 33169)
@@ -42,7 +42,7 @@
     assert_nothing_raised{Encoding.find("locale")}
     assert_nothing_raised{Encoding.find("filesystem")}
 
-    if /(?:ms|dar)win/ !~ RUBY_PLATFORM
+    if /(?:ms|dar)win|mingw/ !~ RUBY_PLATFORM
       # Unix's filesystem encoding is default_external
       assert_ruby_status(%w[-EUTF-8:EUC-JP], <<-'EOS')
         exit Encoding.find("filesystem") == Encoding::UTF_8

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

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