Project

General

Profile

Actions

Bug #10819

closed

can't glob win32 short pathname

Added by arton (Akio Tajima) almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [x64-mswin64_100]
[ruby-core:67954]

Description

I used to install ruby under the "c:/program files" and use to apply windows short pathname such as "c:/progra~1" and it worked fine.
However, rubygems on ruby 2.2.0 failed to look up gemspec. After some investigation, I found that ruby 2.2.0 failed to glob with short pathname.

for ex) ruby -e 'p Dir.glob("c:/progra~1/*")' #=> []

Also I found that the inter glob string with shortname+wildcard also failed both Ruby 2.1.0 and 2.2.0.

for ex) ruby -e 'p Dir.glob("C:/progra~*/*")' #=> []

The testcase is below.

assert_equal Dir.glob('C:/Program Files*/m*').size, Dir.glob('c:/Progra~*/m*').size

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #11206: short file name match incompatibilityClosednobu (Nobuyoshi Nakada)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0