From 7b8d1fc4820c8b78d10c6403db65ce64cb7f43f9 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 28 Apr 2021 14:55:29 -0700 Subject: [PATCH] Fixed localized error strings --- UVAtlasTool/UVAtlas.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UVAtlasTool/UVAtlas.cpp b/UVAtlasTool/UVAtlas.cpp index 5ab14d6..02459fa 100644 --- a/UVAtlasTool/UVAtlas.cpp +++ b/UVAtlasTool/UVAtlas.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -517,6 +518,9 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[]) wchar_t szTexFile[MAX_PATH] = {}; wchar_t szOutputFile[MAX_PATH] = {}; + // Set locale for output since GetErrorDesc can get localized strings. + std::locale::global(std::locale("")); + // Initialize COM (needed for WIC) HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED); if (FAILED(hr))