do not set the locale on Windows due to problems with toupper behaviour

This commit is contained in:
Roman Fomin 2024-03-29 23:16:31 +07:00
parent 11f958a17d
commit 4aab690db3

View File

@ -52,8 +52,12 @@ int main(int argc, char **argv)
myargc = argc; myargc = argc;
myargv = argv; 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 // Print date and time in the Load/Save Game menus in the current locale
setlocale(LC_TIME, ""); setlocale(LC_TIME, "");
#endif
I_Printf(VB_ALWAYS, "%s (built on %s)\n", PROJECT_STRING, version_date); I_Printf(VB_ALWAYS, "%s (built on %s)\n", PROJECT_STRING, version_date);