1
0
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:
Lennart Poettering 2015-08-28 18:22:14 +02:00
parent a1b4e6e933
commit 9797f89bf0

View File

@ -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");