Skip to content
Permalink
Browse files

Windows: Use GetUserDefaultUILanguage() instead of GetThreadLocale().

The thread locale concerns display options (e.g. date formatting) not
the display language. There are typically, but not necessarily the same,
as Windows allows them to be configured separately.
  • Loading branch information...
res2k authored and sev- committed Jun 9, 2017
1 parent 62ab066 commit 0f93962ef4bc43827f878d31a2c0ae3b868276f6
Showing with 1 addition and 1 deletion.
  1. +1 −1 backends/platform/sdl/sdl.cpp
@@ -432,7 +432,7 @@ Common::String OSystem_SDL::getSystemLanguage() const {
char langName[9];
char ctryName[9];

const LCID languageIdentifier = GetThreadLocale();
const LCID languageIdentifier = GetUserDefaultUILanguage();

if (GetLocaleInfo(languageIdentifier, LOCALE_SISO639LANGNAME, langName, sizeof(langName)) != 0 &&
GetLocaleInfo(languageIdentifier, LOCALE_SISO3166CTRYNAME, ctryName, sizeof(ctryName)) != 0) {

0 comments on commit 0f93962

Please sign in to comment.
You can’t perform that action at this time.