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

ruby-changes:36636

From: nobu <ko1@a...>
Date: Fri, 5 Dec 2014 20:37:17 +0900 (JST)
Subject: [ruby-changes:36636] nobu:r48717 (trunk): test_rubyoptions.rb: non-codepage names glob

nobu	2014-12-05 20:37:10 +0900 (Fri, 05 Dec 2014)

  New Revision: 48717

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

  Log:
    test_rubyoptions.rb: non-codepage names glob
    
    * test/ruby/test_rubyoptions.rb (test_command_line_glob_noncodepage):
      more assertion for fallback replacement on non-codepage names.
      [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 48716)
+++ test/ruby/test_rubyoptions.rb	(revision 48717)
@@ -724,6 +724,8 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L724
       with_tmpchdir do |dir|
         Ougai.each {|f| open(f, "w") {}}
         assert_in_out_err(["-Eutf-8", "-e", "puts ARGV", "*"], "", Ougai, encoding: "utf-8")
+        ougai = Ougai.map {|f| f.encode("locale", replace: "?")}
+        assert_in_out_err(["-e", "puts ARGV", "*.txt"], "", ougai)
       end
     end
   end

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

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