Locale (Linux): Add LC_ALL check (#1166)

`LC_ALL`, if set, overrides every other locale-related environment
variable.
This commit is contained in:
TheCourierNV
2024-08-07 04:53:57 +02:00
committed by GitHub
parent b0270f36f9
commit f695ae9116
+4
View File
@@ -4,6 +4,10 @@
void ffDetectLocale(FFstrbuf* result) void ffDetectLocale(FFstrbuf* result)
{ {
ffStrbufAppendS(result, getenv("LC_ALL"));
if(result->length > 0)
return;
ffStrbufAppendS(result, getenv("LC_MESSAGES")); ffStrbufAppendS(result, getenv("LC_MESSAGES"));
if(result->length > 0) if(result->length > 0)
return; return;