ruby-changes:36568
From: nobu <ko1@a...>
Date: Sun, 30 Nov 2014 00:02:23 +0900 (JST)
Subject: [ruby-changes:36568] nobu:r48649 (trunk): test_rubyoptions.rb: workaround
nobu 2014-11-30 00:02:02 +0900 (Sun, 30 Nov 2014) New Revision: 48649 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48649 Log: test_rubyoptions.rb: workaround * test/ruby/test_rubyoptions.rb (test_command_line_glob_nonascii): workaround for other than cp932. [ruby-dev:48752] [Bug #10555] Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 48648) +++ test/ruby/test_rubyoptions.rb (revision 48649) @@ -698,10 +698,11 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L698 def test_command_line_glob_nonascii bug10555 = '[ruby-dev:48752] [Bug #10555]' name = "\u{3042}.txt" + expected = name.encode("locale") rescue "?.txt" with_tmpchdir do |dir| open(name, "w") {} - assert_in_out_err(["-Eutf-8", "-e", "puts ARGV", "?.txt"], "", [name], [], - bug10555, encoding: "utf-8") + assert_in_out_err(["-e", "puts ARGV", "?.txt"], "", [expected], [], + bug10555, encoding: "locale") end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/