Problem with locale configuration settings

After the recent upgrade (i did today) apparently i have a problem with the locale settings.

sterminal is not running anymore, st runs but with a distorted font.

~ >>> sterminal 
couldn't read from shell: Input/output error                                                                                                                                                                                                       
child exited with status 1                                                                                                                                                                                         
tmux: invalid LC_ALL, LC_CTYPE or LANG    ~ >>> sterminal 

/etc/config seems to be configured correctly:

LANG=de_DE.UTF-8
LANGUAGE=de_DE
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=

But:

~ >>> 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=de_DE.UTF-8
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=

And:
~ >>> locale -a
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_COLLATE to default locale: No such file or directory
C
POSIX

When i do:
sudo localectl set-locale LANG=de_DE.UTF-8
I get:
Failed to issue method call: Locale de_DE.UTF-8 not installed, refusing.

But sudo locale-gen de_DE.UTF-8 passes without any complaint … ??

It is probably because your locale is not active in /etc/locale.gen - check that all locales needed is not commented and rebuild message database.

3 Likes

Thanks for your answer. Your idea was right, but i do not understand, why it did not work from commandline but via gui (In the meantime i used the manjaro-settings gui - and there through it worked)… ?

May be because i tried to edit locale.gen with gedit instead of micro (or nano)?

Just one question: In the link you passed me, they suggest to install LANG=en_US as fallback. But, isn’t English built in by default (so there would be no need to activate it)?