From a8d5c2e73ea1b3eed4edb20fa922013b929e1890 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 8 Feb 2017 18:37:47 +0100 Subject: [PATCH] windows: path_canon should yield c:/ not c: --- src/utils/pathut.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/utils/pathut.cpp b/src/utils/pathut.cpp index 7af30cbe..b0a518f9 100644 --- a/src/utils/pathut.cpp +++ b/src/utils/pathut.cpp @@ -444,6 +444,14 @@ string path_canon(const string& is, const string* cwd) } else { ret = "/"; } + +#ifdef _WIN32 + // Raw drive needs a final / + if (path_strlookslikedrive(ret)) { + path_catslash(ret); + } +#endif + return ret; }