mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
Locale (Linux): Add LC_ALL check (#1166)
`LC_ALL`, if set, overrides every other locale-related environment variable.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user