I have installed a minimal Debian chroot using crouton als follows
sh Downloads/crouton -r stretch -t core # ... is how I installed Debian with Crouton
sudo enter-chroot # ... is how I start the chroot
This fixed the missing UTF-8 support for my installation.
sudo apt-get install locales # ... installs missing localisation
sudo dpkg-reconfigure locales # ... and selected de_DE.UTF-8 (or )
You can check the settings with the locale
command. Output should look like this.
(stretch)dirk@localhost:~$ locale
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
I have also added some lines to my .bashrc (though .profile might have been a better place to set the environment).
export LC_ALL=de_DE.UTF-8
export LANGUAGE=de_DE.UTF-8
Setting LANG
is not necessary as it is already set in /etc/default/locale
as one can see that in the output of the locale
command above. One can also edit the /etc/default/locale
to add the LC_ALL
and LANGUAGE
variables for all users (sudo
required).
Sources: