From 9fd8204e271ab3ccfb4ae5b001b54bd7718d8f92 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 5 Jul 2013 11:50:31 +0000 Subject: [PATCH] * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic): this assertion doesn't seems to be checking the unicode string on command line, but seems to be checking how to treat the unicode string from stdin. so, should escape '\' before 'u'. this fixes a test failure on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ test/ruby/test_unicode_escape.rb | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index be50a20e94..3106ad9f9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Fri Jul 5 20:46:39 2013 NAKAMURA Usaku + + * test/ruby/test_unicode_escape.rb (TestUnicodeEscape#test_basic): this + assertion doesn't seems to be checking the unicode string on command + line, but seems to be checking how to treat the unicode string from + stdin. so, should escape '\' before 'u'. this fixes a test failure + on Windows. + Fri Jul 5 19:05:40 2013 Akinori MUSHA * lib/fileutils.rb (FileUtils#chown, FileUtils#chown_R): Fix the diff --git a/test/ruby/test_unicode_escape.rb b/test/ruby/test_unicode_escape.rb index c1b1e2ca40..2561b49486 100644 --- a/test/ruby/test_unicode_escape.rb +++ b/test/ruby/test_unicode_escape.rb @@ -49,7 +49,7 @@ EOS assert_match(/^("?)A\1$/, `echo "\u0041"`) #" assert_match(/^("?)A\1$/, %x{echo "\u0041"}) #" assert_match(/^("?)ΓΌ\1$/, - `#{EnvUtil.rubybin} -e "#coding:utf-8\nputs \\"\u{FC}\\""`.force_encoding("utf-8")) #" + `#{EnvUtil.rubybin} -e "#coding:utf-8\nputs \\"\\u{FC}\\""`.force_encoding("utf-8")) #" # \u in quoted symbols assert_equal(:A, :"\u0041")