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

ruby-changes:25432

From: usa <ko1@a...>
Date: Tue, 6 Nov 2012 14:39:46 +0900 (JST)
Subject: [ruby-changes:25432] usa:r37489 (trunk): * test/win32ole/test_win32ole.rb: now source encoding is UTF-8, so

usa	2012-11-06 14:39:36 +0900 (Tue, 06 Nov 2012)

  New Revision: 37489

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

  Log:
    * test/win32ole/test_win32ole.rb: now source encoding is UTF-8, so
      binary strings in old scripts are dangerous.

  Modified files:
    trunk/ChangeLog
    trunk/test/win32ole/test_win32ole.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37488)
+++ ChangeLog	(revision 37489)
@@ -1,3 +1,8 @@
+Tue Nov  6 14:38:00 2012  NAKAMURA Usaku  <usa@r...>
+
+	* test/win32ole/test_win32ole.rb: now source encoding is UTF-8, so
+	  binary strings in old scripts are dangerous.
+
 Tue Nov  6 14:25:09 2012  NARUSE, Yui  <naruse@r...>
 
 	* lib/net/protocol.rb (Net::InternetMessageIO#each_crlf_line):
Index: test/win32ole/test_win32ole.rb
===================================================================
--- test/win32ole/test_win32ole.rb	(revision 37488)
+++ test/win32ole/test_win32ole.rb	(revision 37489)
@@ -379,7 +379,7 @@
           open(fname, "r:ascii-8bit") {|ifs|
             str = ifs.read
           }
-          assert_equal("\244\242", str)
+          assert_equal("\244\242".b, str)
         end
 
       ensure

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

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