summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/pathname.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f7519ef22..5803e55c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Oct 23 09:12:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always
+ non-nil.
+
Fri Oct 23 07:32:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in, Makefile.in, win32/Makefile.sub (XRUBY): runnable
diff --git a/lib/pathname.rb b/lib/pathname.rb
index 8af8957c7..226b0da22 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -198,7 +198,7 @@ class Pathname
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}