You are not logged in.

#1 2018-05-14 14:41:39

ClaudiusGoennus
Member
Registered: 2018-05-14
Posts: 3

[SOLVED] Locales not set correctly

Hello, I recently installed arch after using manjaro for about a year. At first everything went great, until I noticed, that some programs just didn't work. I then found out that its because my locales aren't set correctly. I followed all the steps on the locale wiki page, but it still didn't change anything.
Here's the output from my locale command:

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

Output from localdef --list-archive:

de_AT.utf8
de_DE.utf8
en_US.utf8

And finally the content of my /etc/locale.conf:

LANG=en_US.UTF-8

If you need anything more, please tell me and thank you for every help you can give!

Last edited by ClaudiusGoennus (2018-05-14 15:26:39)

Offline

#2 2018-05-14 14:54:24

Jubijub
Member
From: Zurich, Switzerland
Registered: 2018-04-04
Posts: 42

Re: [SOLVED] Locales not set correctly

Have you :
- uncommented en_US.UTF-8 UTF-8 in /etc/locale.gen (as well as other languages you need, it seems you are based in Austria)
- launched $ locale.gen
- put in /etc/locale.conf any locale you want to enforce (eg : using de_AT style for date formats by declaring LC_TIME="de_at.UTF-8"

can you post the content of the files above, as well as the result of locale.gen command ?

Offline

#3 2018-05-14 15:16:17

ClaudiusGoennus
Member
Registered: 2018-05-14
Posts: 3

Re: [SOLVED] Locales not set correctly

I don't want to post the whole file here, is there a better way to do that? But I triple-checked that all three are uncommented. Here's the output from locale-gen:

Generating locales...
  de_AT.UTF-8... done
  de_DE.UTF-8... done
  en_US.UTF-8... done
Generation complete.

And thanks for the tip with LC_TIME, this is now my /etc/locale.conf :

LANG="en_US.UTF-8"
LC_TIME="de_AT.UTF-8"

Offline

#4 2018-05-14 15:23:06

ClaudiusGoennus
Member
Registered: 2018-05-14
Posts: 3

Re: [SOLVED] Locales not set correctly

UPDATE: I restarted my system and it works now, thank you very much! what do you think was the problem? Since the only thing i did differently than before was to put the LC_TIME variable in /etc/locale.conf, but why was that a problem? Anyway, thanks ^^

Offline

#5 2018-05-15 06:51:21

Jubijub
Member
From: Zurich, Switzerland
Registered: 2018-04-04
Posts: 42

Re: [SOLVED] Locales not set correctly

The LC_TIME should not be the fix clearly, as all it does is to allow you to override the date format.

Sometimes just playing the steps in order and rebooting fixes things smile

Offline

Board footer

Powered by FluxBB