This commit is contained in:
Christoph Oelckers 2019-08-23 16:03:15 +02:00
commit 45f6ed4cd1
3 changed files with 21 additions and 9 deletions

View file

@ -200,8 +200,8 @@ int OriginalMain(int argc, char** argv)
// Set LC_NUMERIC environment variable in case some library decides to
// clear the setlocale call at least this will be correct.
// Note that the LANG environment variable is overridden by LC_*
setenv("LC_NUMERIC", "C", 1);
setlocale(LC_ALL, "C");
setenv("LC_NUMERIC", "en_US.UTF-8", 1);
setlocale(LC_ALL, "en_US.UTF-8");
// Set reasonable default values for video settings

View file

@ -170,9 +170,9 @@ int main (int argc, char **argv)
// Set LC_NUMERIC environment variable in case some library decides to
// clear the setlocale call at least this will be correct.
// Note that the LANG environment variable is overridden by LC_*
setenv ("LC_NUMERIC", "C", 1);
setenv ("LC_NUMERIC", "en_US.UTF-8", 1);
setlocale (LC_ALL, "C");
setlocale (LC_ALL, "en_US.UTF-8");
if (SDL_Init (0) < 0)
{