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