You are not logged in.

#1 2023-10-14 10:44:49

archnixie
Member
Registered: 2019-03-08
Posts: 4

Cannot resolve locale problem

Orignally, I had plasma installed and now I've switched to xfce4 ... the problem though was present in both. Accordingly my xfce4 etc. is in English, but I want it to be in German.

my locale seems wrong and although I followed the https://wiki.archlinux.org/title/locale carefully, whatever I do does not have any affect on my locale.

Here the output of my current settings

/etc/locale.conf

LC_CTYPE=de_DE.UTF-8
LC_ALL=de_DE.UTF-8
LANG=de_DE.UTF-8

locale -a

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
C.utf8
POSIX
de_DE
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE@euro
deutsch
german

locale

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
LC_CTYPE=de_DE.UTF-8
LC_NUMERIC="de_DE.UTF"
LC_TIME="de_DE.UTF"
LC_COLLATE="de_DE.UTF"
LC_MONETARY="de_DE.UTF"
LC_MESSAGES="de_DE.UTF"
LC_PAPER="de_DE.UTF"
LC_NAME="de_DE.UTF"
LC_ADDRESS="de_DE.UTF"
LC_TELEPHONE="de_DE.UTF"
LC_MEASUREMENT="de_DE.UTF"
LC_IDENTIFICATION="de_DE.UTF"
LC_ALL=

Should it not be all de_DE.UTF-8 instead of just de_DE.UTF? It seems to me this is where the problem lies, but no matter how often I regenerate the locale, this never changes.

sudo locale-gen outputs:

Generating locales...
  de_DE.UTF-8... done
  de_DE.ISO-8859-1... done
  de_DE.ISO-8859-15@euro... done
Generation complete.

Rebooting does not help.

Also I removed any plasma confs after uninstalling everything related to KDE plasma.

Last edited by archnixie (2023-10-14 10:53:06)

Offline

#2 2023-10-14 12:01:44

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: Cannot resolve locale problem

Should it not be all de_DE.UTF-8 instead of just de_DE.UTF?

Yes it should be de_DE.UTF-8.
And I think these are conflicting with each other.

de_DE
de_DE.utf8
deutsch
german

Comment all in /etc/locale.gen file and uncomment de_DE.iso88591, de_DE.iso885915@euro, de_DE.utf8 one by one and run locale-gen in-between. You shouldn't "get locale: Cannot set..." warning.

Last edited by solskog (2023-10-14 12:05:11)

Offline

#3 2023-10-14 12:22:46

archnixie
Member
Registered: 2019-03-08
Posts: 4

Re: Cannot resolve locale problem

Thanks solskog, unfortunately this made absolutely no difference. The output of locale stays the same. It seems to me that although the locales are generated it has not effect in my system. Also I don't quite follow your logic of uncommenting them one by one and each time running locale-gen (although I did as you asked and even rebooted in between). I'm really stumped by this.

Offline

#4 2023-10-14 13:04:34

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: Cannot resolve locale problem

Forget about the iso locales, you don't need them.

Somewhere you have LANG being set wrong. Check your shell init files, including /etc/profile and /etc/profile.d/*.

Offline

#5 2023-10-14 13:20:00

solskog
Member
Registered: 2020-09-05
Posts: 462

Re: Cannot resolve locale problem

No need to restart, just logout and login again, you will start a new session.

# cat /etc/locale.conf 
LANG=de_DE.UTF-8
Comment all lines in /etc/locale.gen
Uncomment de_DE.utf8 in /etc/locale.gen
# locale-gen
Generating locales...
  de_DE.UTF-8... done
# LANG=de_DE.UTF-8
# locale
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=

You should only have these locales for now and no warnings.

# locale -a
C
C.UTF-8
de_DE.utf8
POSIX

Then repeat previous steps with de_DE.iso88591, de_DE.iso885915@euro.

Last edited by solskog (2023-10-14 13:21:24)

Offline

#6 2023-10-14 13:41:31

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,074

Re: Cannot resolve locale problem

LC_ALL=de_DE.UTF-8

LC_ALL is only for debugging, please remove that at least when having resolved this.

The bogus LC exports happen either in some shell rc or (plasma's otr for) https://wiki.archlinux.org/title/KDE#Pl … e_settings (though I don't see this spilling into xfce4)

Basic check in your $HOME

grep LC ~/.*rc ~/.*profile

Offline

Board footer

Powered by FluxBB