Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 18821
Status: rejected
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors: admiral.grinder [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: catpath on Win32 does not return correct DOS path delimiters
File::Spec::Win32->catpath('D:\', 'application/logs') returns 'D:\\application/logs/' instead of 'D:\\application\\logs'. The results may work fine when used in Perl, but should be done right so they can be pushed right out when a DOS path is expected. The current work around is to call it within canonpath(): canonpath(catpath('D:\', 'application/logs')) Documentation isn't clear on this behavior. broken since File::Spec::Win32 v1.5
I'm inclined to leave this the way it is, since it's been working this way for so long. For a better solution you might be interested in Path::Class, though. -Ken