Encode directory names to filesystem encoding for proper comparison
Dir.entries have filesystem encoding (ANSI in Windows). Path fragments have terminal encoding (DOS).
This commit is contained in:
parent
764be49b55
commit
ad54e14d65
|
@ -124,7 +124,7 @@ module Vagrant
|
|||
# Traverse each part and join it into the resulting path
|
||||
original.each do |single|
|
||||
Dir.entries(path).each do |entry|
|
||||
if entry.downcase == single.downcase
|
||||
if entry.downcase == single.encode('filesystem').downcase
|
||||
path = path.join(entry)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue