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

ruby-changes:43373

From: nobu <ko1@a...>
Date: Sun, 19 Jun 2016 10:48:44 +0900 (JST)
Subject: [ruby-changes:43373] nobu:r55446 (trunk): Normalization test iff UTF-8 file system

nobu	2016-06-19 10:48:27 +0900 (Sun, 19 Jun 2016)

  New Revision: 55446

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

  Log:
    Normalization test iff UTF-8 file system
    
    * test/ruby/test_file_exhaustive.rb (test_expand_path_compose):
      normalization is meaningless unless file system encoding is UTF.

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 55445)
+++ test/ruby/test_file_exhaustive.rb	(revision 55446)
@@ -1094,8 +1094,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L1094
     assert_equal('z:/bar/foo', File.expand_path('z:foo', '/bar'), bug10858)
   end if DRIVE
 
-  case RUBY_PLATFORM
-  when /darwin/
+  if /darwin/ =~ RUBY_PLATFORM and Encoding.find("filesystem") == Encoding::UTF_8
     def test_expand_path_compose
       pp = Object.new.extend(Test::Unit::Assertions)
       def pp.mu_pp(str) #:nodoc:

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

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