Commit a8d5c2e7 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

windows: path_canon should yield c:/ not c:

parent c5ca129d
...@@ -444,6 +444,14 @@ string path_canon(const string& is, const string* cwd) ...@@ -444,6 +444,14 @@ string path_canon(const string& is, const string* cwd)
} else { } else {
ret = "/"; ret = "/";
} }
#ifdef _WIN32
// Raw drive needs a final /
if (path_strlookslikedrive(ret)) {
path_catslash(ret);
}
#endif
return ret; return ret;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment