зеркало из https://github.com/github/ruby.git
* lib/find.rb (Find.find): Call to_path for arguments to obtain
strings. [ruby-core:63713] [Bug #10035] Reported by Herwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
89322aafb5
Коммит
c66506ef24
|
@ -1,3 +1,9 @@
|
|||
Mon Oct 13 16:32:56 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/find.rb (Find.find): Call to_path for arguments to obtain
|
||||
strings.
|
||||
[ruby-core:63713] [Bug #10035] Reported by Herwin.
|
||||
|
||||
Mon Oct 13 15:42:25 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* common.mk: use relative load path for bundled_gems directory.
|
||||
|
|
|
@ -40,6 +40,7 @@ module Find
|
|||
fs_encoding = Encoding.find("filesystem")
|
||||
|
||||
paths.collect!{|d| raise Errno::ENOENT unless File.exist?(d); d.dup}.each do |path|
|
||||
path = path.to_path if path.respond_to? :to_path
|
||||
enc = path.encoding == Encoding::US_ASCII ? fs_encoding : path.encoding
|
||||
ps = [path]
|
||||
while file = ps.shift
|
||||
|
|
Загрузка…
Ссылка в новой задаче