You are not logged in.

#1 2022-12-03 09:19:17

Klintyfye
Member
Registered: 2021-02-10
Posts: 12

Locale: Cannot set WC_CTYPE, LC_MESSAGES,LC_ALL to default locale

My locale seems to be configured wrongly. I run the locale-gen command both en_US.UTF-8 and sv_SE.UTF-8 are generated. But when I run locale, this is the output:

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

en_SE.UTF-8 doesn't exist in my /etc/locale.gen so I can't include it.

I tried googling and looking at the arch forum locale page. But I can't find this issue anywhere else

Kind regards

Last edited by Klintyfye (2022-12-03 09:21:34)

Offline

#2 2022-12-03 10:13:43

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

Re: Locale: Cannot set WC_CTYPE, LC_MESSAGES,LC_ALL to default locale

both en_US.UTF-8 and sv_SE.UTF-8 are generated

LANG=en_SE.UTF-8

en_SE doesn't exist in my locale.gen

Edit: you actually figured that.
Why is the locale set to en_SE?

cat /etc/locale.conf
localectl

Do you use plasma/KDE?

Last edited by seth (2022-12-03 10:15:04)

Offline

#3 2022-12-03 10:46:28

Klintyfye
Member
Registered: 2021-02-10
Posts: 12

Re: Locale: Cannot set WC_CTYPE, LC_MESSAGES,LC_ALL to default locale

seth wrote:

both en_US.UTF-8 and sv_SE.UTF-8 are generated

LANG=en_SE.UTF-8

en_SE doesn't exist in my locale.gen

Edit: you actually figured that.
Why is the locale set to en_SE?

cat /etc/locale.conf
localectl

Do you use plasma/KDE?

Yes, I use KDE.

Offline

#4 2022-12-03 14:12:27

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

Re: Locale: Cannot set WC_CTYPE, LC_MESSAGES,LC_ALL to default locale

https://wiki.archlinux.org/title/Locale … g_language

Edit: if that's not it, post the output for the commands in #2

Last edited by seth (2022-12-03 14:13:05)

Offline

Board footer

Powered by FluxBB