Generating locale settings in archlinux

Locales are used by different applications in order to display the output in a proper way. Note that in every glibc update the locales are generated.

List the enabled locales
locale -a
C
el_GR.utf8
en_US.utf8
POSIX
Available locales file
vim /etc/locale.gen
Generate locales
sudo locale-gen
Display locale settings
locale
LANG=en_US.utf8
en_US.utf8
LC_NUMERIC=el_GR.utf8
LC_TIME=el_GR.utf8
en_US.utf8
LC_MONETARY=el_GR.utf8
en_US.utf8
LC_PAPER=el_GR.utf8
en_US.utf8
en_US.utf8
en_US.utf8
LC_MEASUREMENT=el_GR.utf8
en_US.utf8
LC_ALL=
List locales in archive
localedef--list-archive
Setting the system locale
vim /etc/locale.conf
Override the system locale per session
vim ~/.config/locale.conf
NOTE: LC_ALL cannot be set in locale.conf

Latest posts