From 831f05759d64b87f79ac1c02f0d6a5d3e084d656 Mon Sep 17 00:00:00 2001 From: Tejas Date: Sun, 31 Mar 2024 11:11:05 -0700 Subject: [PATCH] Use default minimal ANSI locale. Despite requesting UTF-8, MinGW appears to have been using the 'C' locale the whole time, so we should enforce that here even if UCRT's setlocale() actually works as advertised. --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 208951d48fc..6231e503ef3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -91,8 +91,7 @@ main(int argc, char *argv[]) { task_pool_util::TaskPool::task_id_t force_shutdown = nullptr; #ifdef _WIN32 - // Switch default C standard library locale to UTF-8 on Windows 10 1803+ - setlocale(LC_ALL, ".UTF-8"); + setlocale(LC_ALL, "C"); #endif #pragma GCC diagnostic push