summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-28 18:22:14 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-31 13:20:43 +0200
commit9797f89bf0ec75a60066b162ab7c23dfb8e734e7 (patch)
tree821e6d1768219a1c08d5f36e9b3009156aaffd40 /src
parenta1b4e6e93396c1c449aac4a2a1847033b8ce59f4 (diff)
util: treat 'C' and 'POSIX' locale identical
Diffstat (limited to 'src')
-rw-r--r--src/basic/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/util.c b/src/basic/util.c
index a9071aa117..737f2a221c 100644
--- a/src/basic/util.c
+++ b/src/basic/util.c
@@ -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");