Commit b11d6fe5 authored by Feng Xiao's avatar Feng Xiao

Replace "\\" with "/" for windows path names.

parent 9250fbae
......@@ -108,6 +108,10 @@ string GetTemporaryDirectoryName() {
if (HasPrefixString(result, "\\")) {
result.erase(0, 1);
}
// The Win32 API accepts forward slashes as a path delimiter even though
// backslashes are standard. Let's avoid confusion and use only forward
// slashes.
result = StringReplace(result, "\\", "/", true);
#endif // _WIN32
return result;
}
......
Markdown is supported
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