base-files: Found LANG"='C.UTF-8' culprit - drop as note

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2019-03-27 16:00:22 +01:00
parent b4d2e1834d
commit ab5bf122e9

View File

@@ -18,16 +18,21 @@ if [ -d /etc/profile.d ]; then
unset i
fi
# Note on LANG: On the way thud -> warrior something started to set
# LANG="C.UTF-8". Could not find which package to blame but it is not a good
# idea:
# Note on LANG: Since systemd 240 LANG="C.UTF-8" is set if no /etc/locale.conf
# is found and mentions that 'This locale is supported by various
# distributions' and 'upstream glibc is going to make it available too' [1].
#
# [1] https://lists.freedesktop.org/archives/systemd-devel/2018-December/041852.html
#
# Doing so is not a good idea:
#
# * german Umlaute cannot be displayed anymore
# * at least menulibre does not start anymore and complains with
# | File "/usr/lib/python3.7/site-packages/menulibre/MenulibreApplication.py", line 390, in configure_application_actions
# | label=_('Add _Launcher<65><72><EFBFBD>'),
# | UnicodeDecodeError: 'locale' codec can't decode byte 0xe2 in position 13: decoding error
#
# locale fallback for UTF8
# so set locale fallback - all our images contain en_US
if [ -z "$LANG" -o "$LANG"='C.UTF-8' ]; then
LANG="en_US.utf8"
export LANG