You are not logged in.

#1 2022-04-14 12:20:15

gpf233
Member
Registered: 2022-04-14
Posts: 3

[SOLVED] /etc/locale.conf doesn't work when sddm.service is enabled.

I cannot avoid Non-ASCII characters.

I hava generated the locales and set the LANG variable under the Installation guide.

It works when sddm.service is disabled, and LANG and LC_s are set to en_US.UTF-8 correctly.

But when sddm.service is enabled, LANG and LC_s are set to C.

$ localocalectl list-locales
en_US.UTF-8

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

$ locale
LANG=C
LC_CTYPE="C"
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=

thanks for help

Last edited by gpf233 (2022-04-14 17:54:31)

Offline

#2 2022-04-14 12:27:11

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

Re: [SOLVED] /etc/locale.conf doesn't work when sddm.service is enabled.

You mean after logging into something with sddm? If so, what?

Online

#3 2022-04-14 12:40:19

gpf233
Member
Registered: 2022-04-14
Posts: 3

Re: [SOLVED] /etc/locale.conf doesn't work when sddm.service is enabled.

Scimmia wrote:

You mean after logging into something with sddm? If so, what?

I use X11-KDE-SDDM as desktop GUI. After rebooting my machine and logging into my account with sddm, the locale isn't set to the en_US.UTF-8 as the /etc/locale.conf implies.

Offline

#4 2022-04-14 12:42:50

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

Re: [SOLVED] /etc/locale.conf doesn't work when sddm.service is enabled.

Delete ~/.config/plasma-localerc and try again.

Online

#5 2022-04-14 12:55:00

gpf233
Member
Registered: 2022-04-14
Posts: 3

Re: [SOLVED] /etc/locale.conf doesn't work when sddm.service is enabled.

Scimmia wrote:

Delete ~/.config/plasma-localerc and try again.

Amazing! Everything is fine now. Thank you!

Offline

Board footer

Powered by FluxBB