You are not logged in.

#1 2022-12-23 17:20:00

dbacc
Member
Registered: 2014-09-25
Posts: 119

[Solved] Properly set locale

I'm having difficulties fixing the locale settings on my system.

Some of my applications run into trouble, when there are special characters like umlauts in file paths.
This is the current output I get after setting the locale to de_DE.UTF-8.

❯ locale
LANG=C
LC_CTYPE=C.UTF-8
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
❯ locale -a
C
C.UTF-8
POSIX
de_DE.utf8
en_US.utf8
❯ sudo cat /etc/locale.conf
LANG=de_DE.UTF-8
LC_MESSAGES=en_US.UTF-8
❯ sudo cat /etc/locale.gen | grep "^\w"
de_DE.UTF-8 UTF-8  
en_US.UTF-8 UTF-8  

I'm using i3 as window manager, I also get the same output in tty, and I tried using a different shell via chsh.

Last edited by dbacc (2022-12-23 20:38:45)

Offline

#2 2022-12-23 18:37:29

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] Properly set locale

No need to use sudo cat, the vast majority of files in /etc are world readable.

The locale output is weird, all others (including locale -a) look good .

What does localectl status show ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2022-12-23 20:38:24

dbacc
Member
Registered: 2014-09-25
Posts: 119

Re: [Solved] Properly set locale

Lone_Wolf wrote:

No need to use sudo cat, the vast majority of files in /etc are world readable.

Good catch!
That was indeed the problem, those files not being world readable must have prevented the configuration from being sourced.

Offline

Board footer

Powered by FluxBB