From 3a2eaf2bfd5345baecf7d8636b02ff05e8a6ff58 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 25 Feb 2020 18:51:42 +0100 Subject: [PATCH] - fixed: Windows must call the wide version of _mkdir for Unicode support. --- src/utility/cmdlib.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utility/cmdlib.cpp b/src/utility/cmdlib.cpp index 50eeb67a4..d882d2caf 100644 --- a/src/utility/cmdlib.cpp +++ b/src/utility/cmdlib.cpp @@ -482,7 +482,12 @@ void DoCreatePath(const char *fn) if ('\0' != *path) { DoCreatePath(path); +#ifdef _WIN32 + auto wpath = WideString(path); + _wmkdir(wpath.c_str()); +#else _mkdir(path); +#endif } }