Skip to content

Commit f695ae9

Browse files
authored
Locale (Linux): Add LC_ALL check (#1166)
`LC_ALL`, if set, overrides every other locale-related environment variable.
1 parent b0270f3 commit f695ae9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/detection/locale/locale_linux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
void ffDetectLocale(FFstrbuf* result)
66
{
7+
ffStrbufAppendS(result, getenv("LC_ALL"));
8+
if(result->length > 0)
9+
return;
10+
711
ffStrbufAppendS(result, getenv("LC_MESSAGES"));
812
if(result->length > 0)
913
return;

0 commit comments

Comments
 (0)