You are not logged in.
Dear all ![]()
I have just migrated from Fedora to ArchLinux, and UTF8 doesn't show correct as my regular user. But as root, it works fine.
[sandra@t470s tmp]$ touch æøp
[sandra@t470s tmp]$ ls
''$'\303\246\303\270''p'
[sandra@t470s tmp]$ su
Password:
[root@t470s tmp]# ls
''$'\303\246\303\270''p'
[root@t470s tmp]#
exit
[sandra@t470s tmp]$ su -
Password:
[root@t470s ~]# ls /tmp/tmp/
æøp
[root@t470s ~]# Notice it is only displayed correct when I "su -".
[sandra@t470s ~]$ locale
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_GB.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_GB.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[sandra@t470s ~]$ 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.UTF-8
POSIX
en_GB.utf8
[sandra@t470s ~]$ I have tried with zsh instead og bash, and the problem is the same. And the problem is also there if I use a TTY instead of X.
Does anyone have an idea what the problem could be?
Hugs,
Sandra ![]()
Last edited by LittleSandra (2023-01-27 10:27:44)
Offline
Most likely your locale settings are borked: What output do you get from
localctl
locale
locale -aOnline
Most likely your locale settings are borked: What output do you get from
localctl locale locale -a
Just updated OP with the output.
I don't have localctl, and I can't find any package that have this? "pacman -F localctl" doesn't show anything.
Offline
I don't have localctl
# localectlhttps://man.archlinux.org/man/localectl.1.en
Last edited by d.ALT (2023-01-27 09:29:08)
<49,17,III,I> Fama di loro il mondo esser non lassa;
<50,17,III,I> misericordia e giustizia li sdegna:
<51,17,III,I> non ragioniam di lor, ma guarda e passa.
Offline
I see ![]()
[root@t470s ~]# localectl
System Locale: LANG=en_GB.UTF-8
VC Keymap: dk
X11 Layout: dk
X11 Model: pc105
X11 Options: terminate:ctrl_alt_bkspOffline
Whoops sorry for the mistype
You reference en_US locale multiple times but have no locale generated for en_US (... since there are many tools that need this anyway it's always a good idea to have that one regardless) are these references intentional or should everything be en_GB? You will want to generate en_US anyway, but if the en_US references in your locale are not intentional, are you using plasma by chance? See https://wiki.archlinux.org/title/Locale … g_language
Last edited by V1del (2023-01-27 09:50:39)
Online
Whoops sorry for the mistype
You reference en_US locale multiple times but have no locale generated for en_US (... since there are many tools that need this anyway it's always a good idea to have that one regardless) are these references intentional or should everything be en_GB? You will want to generate en_US anyway, but if the en_US references in your locale are not intentional, are you using plasma by chance? See https://wiki.archlinux.org/title/Locale … g_language
I have now enabled "en_US.UF8" in /etc/locale.gen, and that fixed the issue ![]()
I would prefer for use "en_GB.UTF8" for everything. Do you know how that is done?
Offline
Read the info in my link, many of the "bigger" DEs have custom ways of changing locale types and you'd have to align them appropriately assuming that is the reason for the difference.
Online
Read the info in my link, many of the "bigger" DEs have custom ways of changing locale types and you'd have to align them appropriately assuming that is the reason for the difference.
I am not sure I understand what to look for.
My /etc/locale.conf contains only
LANG=en_GB.UTF-8Should I add the following?
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"Offline
That shouldn't be necessary if nothing else is overriding them. Which graphical session are you using? Or do you have potentially some profile/environment files setting different locales e.g. ~/.profile or so
Online
That shouldn't be necessary if nothing else is overriding them. Which graphical session are you using? Or do you have potentially some profile/environment files setting different locales e.g. ~/.profile or so
I use i3wm. My ~/.profile is empty, and .dmrc
[Desktop]
Session=i3Offline
grep -r en_US ~/.*Offline
grep -r en_US ~/.*
$ grep -lr en_US ~/.[^.]*|grep -Evi '(cache|google|local|wine|sonar|vscode|libre)'
/home/a/.bashrcI had overlooked that export ![]()
Thanks ![]()
Offline