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

ruby-changes:13655

From: nobu <ko1@a...>
Date: Fri, 23 Oct 2009 09:13:19 +0900 (JST)
Subject: [ruby-changes:13655] Ruby:r25440 (trunk): * lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always

nobu	2009-10-23 09:13:02 +0900 (Fri, 23 Oct 2009)

  New Revision: 25440

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

  Log:
    * lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always
      non-nil.

  Modified files:
    trunk/ChangeLog
    trunk/lib/pathname.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25439)
+++ ChangeLog	(revision 25440)
@@ -1,3 +1,8 @@
+Fri Oct 23 09:12:59 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always
+	  non-nil.
+
 Fri Oct 23 07:32:37 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in, Makefile.in, win32/Makefile.sub (XRUBY): runnable
Index: lib/pathname.rb
===================================================================
--- lib/pathname.rb	(revision 25439)
+++ lib/pathname.rb	(revision 25440)
@@ -198,7 +198,7 @@
     TO_PATH = :to_path
   end
 
-  SAME_PATHS = if File::FNM_SYSCASE
+  SAME_PATHS = if File::FNM_SYSCASE.nonzero?
     proc {|a, b| a.casecmp(b).zero?}
   else
     proc {|a, b| a == b}

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

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