You are not logged in.

#1 2024-02-11 04:26:15

vivianne
Member
Registered: 2024-02-11
Posts: 6

[SOLVED] Failing to set default locale; cannot set LC_CTYPE LC_MESSAGE

I recently reinstalled arch on my hp z230 workstation. I was sure I followed the installation guide correctly, but I'm getting errors about locale. Dozens of programs dont work and return errors like this:

$ rofi

(process:1984): Rofi-WARNING **: 23:19:51.332: Failed to set locale.

I've read through the wiki, and looked at other forum threads, I've run locale-gen, I've remade my locale gen and conf files, but I still can't find what I'm doing wrong.

Here's the output of stuff about locale:

$ 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_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=

$ cat /etc/locale.gen
en_US.UTF-8 UTF-8

$ cat /etc/locale.conf
LANG=en_us.UTF-8

$ echo $LANG
en_us.UTF-8

thanks

Last edited by vivianne (2024-02-11 10:36:01)

Offline

#2 2024-02-11 04:31:48

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

Re: [SOLVED] Failing to set default locale; cannot set LC_CTYPE LC_MESSAGE

Case matters on *nix systems. en_us is not the same as en_US

Offline

#3 2024-02-11 10:34:09

vivianne
Member
Registered: 2024-02-11
Posts: 6

Re: [SOLVED] Failing to set default locale; cannot set LC_CTYPE LC_MESSAGE

worked thank you!!!

Offline

Board footer

Powered by FluxBB