base-files: Fix german umlaute and more (again)

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2019-03-27 15:41:23 +01:00
parent 010614c7b9
commit b4d2e1834d

View File

@@ -18,8 +18,17 @@ 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:
# * 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
if [ -z "$LANG" ]; then
if [ -z "$LANG" -o "$LANG"='C.UTF-8' ]; then
LANG="en_US.utf8"
export LANG
fi