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

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