summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-23 00:13:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-23 00:13:02 +0000
commitd645c25a7f9fded298d17cde37705791c740d2a2 (patch)
tree5bc4dd10d4084e96126d1d1ea2f20fab4eb83dfb
parent01be019547288e708ad3427a3a58295badad92f9 (diff)
* lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always
non-nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/pathname.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f7519ef228..5803e55c35 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 8af8957c7b..226b0da229 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}