mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 18:27:04 +03:00
util: treat 'C' and 'POSIX' locale identical
This commit is contained in:
parent
a1b4e6e933
commit
9797f89bf0
@ -4273,7 +4273,7 @@ bool is_locale_utf8(void) {
|
||||
/* Check result, but ignore the result if C was set
|
||||
* explicitly. */
|
||||
cached_answer =
|
||||
streq(set, "C") &&
|
||||
STR_IN_SET(set, "C", "POSIX") &&
|
||||
!getenv("LC_ALL") &&
|
||||
!getenv("LC_CTYPE") &&
|
||||
!getenv("LANG");
|
||||
|
Loading…
Reference in New Issue
Block a user