mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 02:57:16 +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
|
/* Check result, but ignore the result if C was set
|
||||||
* explicitly. */
|
* explicitly. */
|
||||||
cached_answer =
|
cached_answer =
|
||||||
streq(set, "C") &&
|
STR_IN_SET(set, "C", "POSIX") &&
|
||||||
!getenv("LC_ALL") &&
|
!getenv("LC_ALL") &&
|
||||||
!getenv("LC_CTYPE") &&
|
!getenv("LC_CTYPE") &&
|
||||||
!getenv("LANG");
|
!getenv("LANG");
|
||||||
|
Loading…
Reference in New Issue
Block a user