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

ruby-changes:36635

From: nobu <ko1@a...>
Date: Fri, 5 Dec 2014 19:35:48 +0900 (JST)
Subject: [ruby-changes:36635] nobu:r48716 (trunk): test_rubyoptions.rb: non-codepage names glob

nobu	2014-12-05 19:35:43 +0900 (Fri, 05 Dec 2014)

  New Revision: 48716

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

  Log:
    test_rubyoptions.rb: non-codepage names glob
    
    * test/ruby/test_rubyoptions.rb (test_command_line_glob_noncodepage):
      test for command line globbing 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 48715)
+++ test/ruby/test_rubyoptions.rb	(revision 48716)
@@ -718,6 +718,16 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L718
     end
   end
 
+  if /mswin|mingw/ =~ RUBY_PLATFORM
+    Ougai = %W[\u{68ee}O\u{5916}.txt \u{68ee 9d0e 5916}.txt \u{68ee 9dd7 5916}.txt]
+    def test_command_line_glob_noncodepage
+      with_tmpchdir do |dir|
+        Ougai.each {|f| open(f, "w") {}}
+        assert_in_out_err(["-Eutf-8", "-e", "puts ARGV", "*"], "", Ougai, encoding: "utf-8")
+      end
+    end
+  end
+
   def test_script_is_directory
     feature2408 = '[ruby-core:26925]'
     assert_in_out_err(%w[.], "", [], /Is a directory -- \./, feature2408)

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

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