summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tool/vpath.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fff0ec8fb1..298788a2e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 15 23:12:34 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/vpath.rb (VPath#list): default separator to PATH_SEPARATOR from
+ configure.in for make, not same name constant of File for use in ruby.
+
Tue Jan 15 22:30:04 2013 Keiju Ishitsuka <keiju@ishitsuka.com>
* lib/irb/ext/save-history.rb: identify rightly a status of a
diff --git a/tool/vpath.rb b/tool/vpath.rb
index 5241d2d544..5aa2f9f3fe 100644
--- a/tool/vpath.rb
+++ b/tool/vpath.rb
@@ -6,7 +6,7 @@ class VPath
def initialize(*list)
@list = list
@additional = []
- @separator = File::PATH_SEPARATOR
+ @separator = nil
end
def inspect
@@ -65,6 +65,7 @@ class VPath
end
def list
+ @separator ||= (require 'rbconfig'; RbConfig::CONFIG["PATH_SEPARATOR"])
@additional.reject! do |dirs|
case dirs
when String