Summary: std.path.isabs broken for Windows
           Product: D
           Version: 1.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Phobos

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):

As you can see, although all paths are reported as relative, they are indeed
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.


Reply via email to