chiark / gitweb /
util.c:is_locale_utf8(): check, if "C" was set on purpose
authorHarald Hoyer <harald@redhat.com>
Thu, 27 Jun 2013 09:26:36 +0000 (11:26 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Jul 2013 17:03:23 +0000 (19:03 +0200)
commit6cf2f1d94dc7749bcdff5385838bdc8eba9c3001
tree3709b5bf7215c631cd2ce0da69580309d5d1fc6c
parente7256c5c137e58fb3dc1ebca8e5845733a5f733c
util.c:is_locale_utf8(): check, if "C" was set on purpose

If you have a ASCII only terminal, there is no way to set the charmap to
ANSI_X3.4-1968, other than using LC_CTYPE=C.

We don't want to assume a UTF-8 capable terminal in this case and only
do so, if LANG, LC_ALL and LC_CTYPE are unset.
src/shared/util.c