[Issue 2552] New: std.path.isabs broken for Windows
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 2 15:34:31 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2552
Summary: std.path.isabs broken for Windows
Product: D
Version: 1.030
Platform: PC
URL: http://www.digitalmars.com/d/1.0/phobos/std_path.html
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P3
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: darkuranium at gmail.com
std.path.isabs(char[]) falsely reports paths as relative when they are, indeed,
absolute. For example:
isabs("/test") => 0 (should be 1)
isabs("\test") => 0 (should be 1)
Here is the program I used to test this -- see the comments in the source for
instructions (they are importaint):
http://paste.dprogramming.com/dpavbrtf
As you can see, although all paths are reported as relative, they are indeed
absolute.
This is visible by the fact that main.d cannot find test-rel which lies in the
same dir as the program itself.
It can, however find test-abs, which lies the root of the drive.
--
More information about the Digitalmars-d-bugs
mailing list