You are not logged in.

#1 2024-03-05 10:32:13

snakehater
Member
Registered: 2023-03-13
Posts: 7

[SOLVED] Locale errors

I get locale errors when using kde plasma:

┌──(pcarch)-[~]
└─$ 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_COLLATE to default locale: No such file or directory
C
C.utf8
POSIX
en_US.utf8
┌──(pcarch)-[~]
└─$ man cat
man: can't set the locale; make sure $LC_* and $LANG are correct

however when I switch tty without kde I don't get any errors:

┌──(pcarch)-[~]
└─$ locale -a
C
C.utf8
POSIX
en_US.utf8
┌──(pcarch)-[~]
└─$ man cat

I have tried to:
- restart
- change locale settings in kde
- reinstalled arch (I didn't reinstall arch to fix this issue, but it shows that it I probably do something wrong when setting up locale, or the packages I combine.)

I have read the following articles and tried to set up locale that way:
https://wiki.archlinux.org/title/Locale
https://wiki.archlinux.org/title/Instal … calization

I think that it could be an issue with how kde sets up the locale for the session, or an issue with how locale is set up for kde or x11

Some info that might help:

└─$ loginctl session-status
2 - user (1000)
  Since: Tue 2024-03-05 12:17:43 CET; 10min ago
  State: active
 Leader: 637 (sddm-helper)
   Seat: seat0; vc2
    TTY: tty2
 Remote: no
Service: sddm
   Type: x11
  Class: user
Desktop: KDE
   Idle: no
   Unit: session-2.scope
         ├─637 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-auth-d8ec1dce-b821-4>
         └─653 /usr/bin/startplasma-x11
└─$ uname -a
Linux pcarch 6.7.6-arch1-1-surface #1 SMP PREEMPT_DYNAMIC Tue, 27 Feb 2024 19:53:26 +0000 x86_64 GNU/Linux
└─$ sudo pacman -Syyu # system is up to date
:: Synchronizing package databases...
 core                  134.5 KiB   407 KiB/s 00:00 [#######################] 100%
 extra                   8.3 MiB  2.32 MiB/s 00:04 [#######################] 100%
 multilib              139.9 KiB  1307 KiB/s 00:00 [#######################] 100%
 custom                 40.0 KiB  39.1 MiB/s 00:00 [#######################] 100%
 linux-surface           5.3 KiB  20.8 KiB/s 00:00 [#######################] 100%
:: Starting full system upgrade...
 there is nothing to do

Last edited by snakehater (2024-03-05 16:35:30)

Offline

#2 2024-03-05 10:34:49

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: [SOLVED] Locale errors

There is indeed an issue with how Plasma sets up localization because the mapping between locales that glibc knows and the locales that Qt knows can differ, see the additional notes in: https://wiki.archlinux.org/title/Locale … g_language

Offline

#3 2024-03-05 15:33:18

snakehater
Member
Registered: 2023-03-13
Posts: 7

Re: [SOLVED] Locale errors

V1del wrote:

There is indeed an issue with how Plasma sets up localization because the mapping between locales that glibc knows and the locales that Qt knows can differ, see the additional notes in: https://wiki.archlinux.org/title/Locale … g_language

Thank you, following command fixed the issue:

rm -rf ~/.config/plasma-localerc

Offline

#4 2024-03-05 16:32:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,231

Re: [SOLVED] Locale errors

Please mark as [SOLVED] by editing the title in your first post.

Offline

Board footer

Powered by FluxBB