since updating/changing to the DietPi v119 image, which in the meantime updates itself to v126 during the first few reboots, changing the locale - either set via the DiePi-GUI or via the dietpi.txt automation script - is not working correctly. Leaving the settings to en_GB works. I've gone with dietpi.txt as that makes the process and the results repeatable.
These parameters were used in dietpi.txt:
Code: Select all
# Locale eg: en_GB en_US | Full list: cat /etc/locale.gen
AUTO_Locale=en_GB de_DE en_US
Code: Select all
root@dietpi:~# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
Btw time zone and keyboard layout (which are set along with locale) have also been changed and work nicely.
Could somebody help me out and explain what need to be configured to have the system run on en_US.UTF-8 for all LANG and LC-parameters?
Some more observations (which could help narrow down the problem):
Code: Select all
cat /etc/default/locale:
LANG=en_GB de_DE en_US.UTF-8
Code: Select all
cat /etc/locale.gen | sed -n '/en_GB/p;/en_US/p;/de_DE/p'
# de_DE ISO-8859-1
# de_DE.UTF-8 UTF-8
# de_DE@euro ISO-8859-15
# en_GB ISO-8859-1
# en_GB.ISO-8859-15 ISO-8859-15
# en_GB.UTF-8 UTF-8
# en_US ISO-8859-1
# en_US.ISO-8859-15 ISO-8859-15
# en_US.UTF-8 UTF-8
Code: Select all
executing dpkg-reconfigure locales
Code: Select all
root@dietpi:~# locale
LANG=en_GB
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
After that, /etc/locale.gen looks as it should (to me):
Code: Select all
cat /etc/locale.gen | sed -n '/en_GB/p;/en_US/p;/de_DE/p'
# de_DE ISO-8859-1
de_DE.UTF-8 UTF-8
# de_DE@euro ISO-8859-15
# en_GB ISO-8859-1
# en_GB.ISO-8859-15 ISO-8859-15
en_GB.UTF-8 UTF-8
# en_US ISO-8859-1
# en_US.ISO-8859-15 ISO-8859-15
en_US.UTF-8 UTF-8
Code: Select all
cat /etc/default/locale
LANG=en_US.UTF-8