Re: [PATCH v4 2/3] relative_path should honor dos-driver-prefix

2013-10-10 Thread Sebastian Schuberth
On 20.09.2013 04:38, Jiang Xin wrote: Tvangeste found that the "relative_path" function could not work properly on Windows if "in" and "prefix" have DOS driver prefix (such as "C:/windows"). ($gmane/234434) s/driver/drive/ E.g., When execute: test-path-utils relative_path "C:/a/b" "D:/x/y",

[PATCH v4 2/3] relative_path should honor dos-driver-prefix

2013-09-19 Thread Jiang Xin
Tvangeste found that the "relative_path" function could not work properly on Windows if "in" and "prefix" have DOS driver prefix (such as "C:/windows"). ($gmane/234434) E.g., When execute: test-path-utils relative_path "C:/a/b" "D:/x/y", should return "C:/a/b", but returns "../../C:/a/b", which is