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

This queue is for tickets about the PathTools CPAN distribution.

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

Owner: Nobody in particular
Requestors: bryandaimler [...]

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

Subject: Win32 abs2rel fails on UNC & volume root directories
Download (untitled) / with headers
text/plain 789b
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. ActiveState is a division of Sophos. Built Jun 1 2004 11:52:21
Download (untitled) / with headers
text/plain 165b
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

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

Please report any issues with to