summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-09 02:26:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-09 02:26:19 +0000
commitc11e9045f774a0dce5722e3b25d61790731c1ffa (patch)
tree66ea6aa7b69310efeeb5e874ffdeb3b5dab0f673
parenta4065601924bc8cf19437e09fa01511a6fd978b6 (diff)
* lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist?
instead of File.exists?. [ruby-dev:30000] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/irb/locale.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 773be8af70..26fd44bf99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Dec 9 11:22:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist?
+ instead of File.exists?. [ruby-dev:30000]
+
Thu Dec 7 09:29:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/weakref.rb (WeakRef::__setobj__): should support
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb
index 4b6aba2bb9..8a0f33d8fb 100644
--- a/lib/irb/locale.rb
+++ b/lib/irb/locale.rb
@@ -153,8 +153,8 @@ module IRB
end
def search_file(path, file)
- if File.exists?(p1 = path + lc_path(file, "C"))
- if File.exists?(p2 = path + lc_path(file))
+ if File.exist?(p1 = path + lc_path(file, "C"))
+ if File.exist?(p2 = path + lc_path(file))
return p2
else
end