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

ruby-changes:12397

From: naruse <ko1@a...>
Date: Tue, 14 Jul 2009 01:32:17 +0900 (JST)
Subject: [ruby-changes:12397] Ruby:r24096 (trunk): Follow tests for changes of ENV's encoding.

naruse	2009-07-14 01:32:00 +0900 (Tue, 14 Jul 2009)

  New Revision: 24096

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

  Log:
    Follow tests for changes of ENV's encoding.
    * test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of ENV
      is now locale encoding.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_m17n.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24095)
+++ ChangeLog	(revision 24096)
@@ -1,3 +1,8 @@
+Tue Jul 14 01:28:17 2009  NARUSE, Yui  <naruse@r...>
+
+	* test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of
+	  ENV is now locale encoding.
+
 Tue Jul 14 01:24:56 2009  NARUSE, Yui  <naruse@r...>
 
 	* marshal.c (r_object0): should return real object.
Index: test/ruby/test_m17n.rb
===================================================================
--- test/ruby/test_m17n.rb	(revision 24095)
+++ test/ruby/test_m17n.rb	(revision 24096)
@@ -1132,9 +1132,10 @@
   end
 
   def test_env
+    locale_encoding = Encoding.find("locale")
     ENV.each {|k, v|
-      assert_equal(Encoding::ASCII_8BIT, k.encoding)
-      assert_equal(Encoding::ASCII_8BIT, v.encoding)
+      assert_equal(locale_encoding, k.encoding)
+      assert_equal(locale_encoding, v.encoding)
     }
   end
 

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

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