Skip Menu |

This queue is for tickets about the PathTools CPAN distribution.

Report information
The Basics
Id: 12306
Status: new
Priority: 0/
Queue: PathTools

Owner: Nobody in particular

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

Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
X-Mailer: MIME-tools 5.415 (Entity 5.415)
Subject: abs_path() returning C:/foo/bar on Win32
X-RT-Original-Encoding: iso-8859-1
Content-Length: 602
Download (untitled) / with headers
text/plain 602b
abs_path returns paths using / instead of \ on Win32. C:/foo/bar instead of C:\foo\bar. I've confirmed this with Cwd 2.17 and the code appears in 3.06. my $tdir = $dir; $tdir =~ s!\\!/!g if $^O eq 'MSWin32'; return $tdir eq File::Spec->rootdir ? File::Spec->catpath($vol, $dir, $file) : fast_abs_path(File::Spec->catpath($vol, $dir, '')) . '/' . $file; Why it does this I don't know, its probably a pre-5.005 Unixism never fixed possibly related to the fact that rootdir() on Win32 returns /. Cwd has no policy on what style of path it will output but I would assume it would be native.

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

Please report any issues with to