Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 16095
Status: resolved
Priority: 0/
Queue: PathTools

People
Owner: Nobody in particular
Requestors: bryandaimler [...] netscape.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.14
Fixed in: (no value)



Subject: Win32 abs2rel fails on UNC & volume root directories
abs2rel() under Win32 gives incorrect results for UNC paths and any comparison in which the base path is the root of a volume. Examples: use File::Spec::Functions 'abs2rel'; print abs2rel("C:\\Windows\\System32", "C:\\"), "\n"; # yields '..\Windows\System32' instead of the expected 'Windows\System32' print abs2rel("\\\\computer2\\share3\\foo.txt", "\\\\computer2\\share3") # yields '\foo.txt' rather than the expected 'foo.txt' This has been tested with PathTools 3.14 on the following perl: This is perl, v5.8.4 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) Copyright 1987-2004, Larry Wall Binary build 810 provided by ActiveState Corp. http://www.ActiveState.com ActiveState is a division of Sophos. Built Jun 1 2004 11:52:21
Thanks, I can confirm this behavior. It looks like the bug's been around for a long time, at least back to version 3.00. I'll fix it for the next release. -Ken