diff --git a/apps/mwiniimporter/main.cpp b/apps/mwiniimporter/main.cpp index ffd663df6c..58b5a9e6c5 100644 --- a/apps/mwiniimporter/main.cpp +++ b/apps/mwiniimporter/main.cpp @@ -93,13 +93,13 @@ int wmain(int argc, wchar_t *wargv[]) { bpo::notify(vm); - std::filesystem::path iniFile(vm["ini"].as()); - std::filesystem::path cfgFile(vm["cfg"].as()); + std::filesystem::path iniFile(vm["ini"].as().u8string()); // This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs. + std::filesystem::path cfgFile(vm["cfg"].as().u8string()); // This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs. // if no output is given, write back to cfg file - auto outputFile = vm["output"].as(); + std::filesystem::path outputFile = vm["output"].as().u8string(); // This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs. if(vm["output"].defaulted()) { - outputFile = vm["cfg"].as(); + outputFile = vm["cfg"].as().u8string(); // This call to u8string is redundant, but required to build on MSVC 14.26 due to implementation bugs. } if(!std::filesystem::exists(iniFile)) {