From 4aab690db399f9022f7972c42cd4b8e7681094d7 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Fri, 29 Mar 2024 23:16:31 +0700 Subject: [PATCH] do not set the locale on Windows due to problems with `toupper` behaviour --- src/i_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/i_main.c b/src/i_main.c index 76d0ab17..c6aa31d7 100644 --- a/src/i_main.c +++ b/src/i_main.c @@ -52,8 +52,12 @@ int main(int argc, char **argv) myargc = argc; myargv = argv; + // Do not set the locale on Windows due to problems with `toupper` behaviour + // https://github.com/fabiangreffrath/woof/pull/1630#issuecomment-2026917711 +#ifndef _WIN32 // Print date and time in the Load/Save Game menus in the current locale setlocale(LC_TIME, ""); +#endif I_Printf(VB_ALWAYS, "%s (built on %s)\n", PROJECT_STRING, version_date);