filesystem::normalize_path() seems to insert an extra backslash for some non-existing paths.
Imported from https://youtrack.roxen.com/issue/PIKE-104
Reported by @grubba
Path verification of "" failed:
"C:\\disttest\\install test\\ws_6_2\\server-6.2.129\\NONE\\" is not a prefix of "C:\\disttest\\install test\\ws_6_2\\server-6.2.129\\\\NONE\\"
The first path ("C:\\disttest\\install test\\ws_6_2\\server-6.2.129\\NONE\\"
) is the result of
replace(normalize_path(path), "/", "\\")
, while the second ("C:\\disttest\\install test\\ws_6_2\\server-6.2.129\\\\NONE\\"
) is the result of
replace(normalize_path(path + "."), "/", "\\")
, where path
is the result from
combine_path(getcwd(), "NONE", "./")