Issue 6137 in pharo: AbsolutePath not absolute on Windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 6137 in pharo: AbsolutePath not absolute on Windows

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Bug Milestone-2.0

New issue 6137 by [hidden email]: AbsolutePath not absolute on Windows
http://code.google.com/p/pharo/issues/detail?id=6137

(AbsolutePath from: 'c:\test.txt') class

returns RelativePath on Windows instead of AbsolutePath. This is clearly
a bug and was introduced with "FileSystem-Core-StephaneDucasse.14.mcz"

Therefore please add these two test case methods to class PathTest

testUnixAbsolutePathName
   self assert: (Path from: '/test') isAbsolute

testWindowsAbsolutePathName
   self assert: (Path from: 'c:\test') isAbsolute

and you will see that the last one is red and has to be fixed.


The problem is the method Path>>from:delimiter where class AbsolutePath
is only used when the path string starts with "/".
This is true for Unix but NOT FOR WINDOWS path names.

So currently it returns RelativePath but "C:\test" is not a relative
path on Windows.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6137 in pharo: AbsolutePath not absolute on Windows

pharo
Updates:
        Status: Duplicate
        Mergedinto: 6138

Comment #1 on issue 6137 by [hidden email]: AbsolutePath not  
absolute on Windows
http://code.google.com/p/pharo/issues/detail?id=6137

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker