This commit is contained in:
Yukari Hafner 2025-08-24 03:46:10 +02:00 committed by GitHub
commit 6bac4013b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1722,11 +1722,11 @@ static void keyboardHandleKeymap(void* userData,
// Look up the preferred locale, falling back to "C" as default. // Look up the preferred locale, falling back to "C" as default.
locale = getenv("LC_ALL"); locale = getenv("LC_ALL");
if (!locale) if (!locale || strlen(locale) == 0)
locale = getenv("LC_CTYPE"); locale = getenv("LC_CTYPE");
if (!locale) if (!locale || strlen(locale) == 0)
locale = getenv("LANG"); locale = getenv("LANG");
if (!locale) if (!locale || strlen(locale) == 0)
locale = "C"; locale = "C";
composeTable = composeTable =