From f2fc82fc2a45e653f67d3a67e76dc8d4385e12e4 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 6 Nov 2012 05:39:36 +0000 Subject: [PATCH] * test/win32ole/test_win32ole.rb: now source encoding is UTF-8, so binary strings in old scripts are dangerous. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/win32ole/test_win32ole.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8ef0432657..0e186d5d53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 6 14:38:00 2012 NAKAMURA Usaku + + * 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 * lib/net/protocol.rb (Net::InternetMessageIO#each_crlf_line): diff --git a/test/win32ole/test_win32ole.rb b/test/win32ole/test_win32ole.rb index 5fbfbdef16..ba4413e025 100644 --- a/test/win32ole/test_win32ole.rb +++ b/test/win32ole/test_win32ole.rb @@ -379,7 +379,7 @@ if defined?(WIN32OLE) open(fname, "r:ascii-8bit") {|ifs| str = ifs.read } - assert_equal("\244\242", str) + assert_equal("\244\242".b, str) end ensure