Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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
Download (untitled) / with headers
text/plain 441b
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
Download (untitled) / with headers
text/plain 167b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.