Commit b19202b
committed
FIX: Correctly handle Windows paths that do not start with a drive letter
On Windows, an absolute path should start with a drive letter, or UNC notation.
xolox#misc#path#split() doesn't consider drive-local filespecs (e.g. \Windows\system32); it needs a check for a leading path separator like the Unix branch.
xolox#misc#path#absolute() doesn't convert a drive-local filespec into a full absolute one (e.g. C:\Windows\system32); it needs a check for those and prepend the current drive letter then.1 parent e3f28a7 commit b19202b
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
0 commit comments