View previous topic :: View next topic |
Author |
Message |
koschi Tux's lil' helper
Joined: 09 Oct 2004 Posts: 132 Location: Gerlingen, DE
|
Posted: Sat Sep 21, 2024 4:52 am Post subject: [solved] Detected locale "C" issue |
|
|
Hi all,
I recently noticed the messages below in my /var/log/messages.
I followed the localisation guide https://wiki.gentoo.org/wiki/Localization/Guide and noticed that I had LC_COLLATE="C" instead of "C.UTF-8". After a locale-gen + env-update && source /etc/profile the message is still there:
/var/log/messages:
Code: | Sep 21 06:33:04 mobiletux org.kde.kded.smart: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information.
Sep 21 06:33:05 mobiletux org.kde.powerdevil.discretegpuhelper: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information.
Sep 21 06:33:05 mobiletux org.kde.powerdevil.chargethresholdhelper: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information.
Sep 21 06:33:05 mobiletux org.kde.powerdevil.backlighthelper: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. |
My locales:
Code: | # locale
LANG=de_DE.utf8
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE=C.UTF-8
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
LC_ALL=
|
How can I get rid of this? Thx! _________________ Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren.
Last edited by koschi on Thu Nov 07, 2024 6:42 pm; edited 1 time in total |
|
Back to top |
|
|
druggo Guru
Joined: 24 Sep 2003 Posts: 318 Location: Hangzhou, China
|
Posted: Mon Sep 23, 2024 4:40 am Post subject: |
|
|
have you define the LANG in /etc/locale.conf ?
if so, you need restart the session to take effect. _________________ HighWayToHell(blog)
https://blog.druggo.org/ |
|
Back to top |
|
|
koschi Tux's lil' helper
Joined: 09 Oct 2004 Posts: 132 Location: Gerlingen, DE
|
Posted: Tue Sep 24, 2024 9:24 am Post subject: |
|
|
Hi,
I don't have a /etc/locale.conf. LANG is defined here:
/etc/env.d/02locale
Code: | # Configuration file for eselect
# This file has been automatically generated.
LANG="de_DE.UTF-8"
LC_COLLATE="C.UTF-8"
|
_________________ Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren. |
|
Back to top |
|
|
druggo Guru
Joined: 24 Sep 2003 Posts: 318 Location: Hangzhou, China
|
Posted: Tue Sep 24, 2024 9:59 am Post subject: |
|
|
oh yes , /etc/env.d/02locale is the right place.
you can check the process to see if env appplied:
Code: | cat /proc/[pid of the process]/environ | xargs -n 1 -0 | egrep "LANG|LC_" |
_________________ HighWayToHell(blog)
https://blog.druggo.org/ |
|
Back to top |
|
|
mkrsn n00b
Joined: 26 Dec 2020 Posts: 10
|
Posted: Wed Sep 25, 2024 3:16 pm Post subject: |
|
|
Hi all,
same Problem here.
The only process which is running with LANG=C is "/usr/libexec/sddm-helper --socket /tmp/sddm-auth-6b2f03c5-0c01-43dc-aa47-3762b3a3c25d --id 1 --start /usr/libexec/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland --user <user>"
I couldn't find any configuration which sets LANG to the mentioned value. Any Ideas?
Greetings
Matthias |
|
Back to top |
|
|
flexibeast Guru
Joined: 04 Apr 2022 Posts: 450 Location: Naarm/Melbourne, Australia
|
Posted: Thu Sep 26, 2024 5:20 am Post subject: |
|
|
"ANSI_X3.4-1968" is what us mere mortals call 'ASCII'. Is ASCII referenced anywhere in your locale-related settings? |
|
Back to top |
|
|
mkrsn n00b
Joined: 26 Dec 2020 Posts: 10
|
Posted: Thu Sep 26, 2024 11:37 pm Post subject: |
|
|
No ASCII referenced anywhere.
Code: |
mkrsn@client02 ~ $ cat /etc/locale.gen
en_US.UTF-8 UTF-8
de_DE.UTF-8 UTF-8
|
Code: |
mkrsn@client02 ~ $ cat /etc/env.d/02locale
# Configuration file for eselect
# This file has been automatically generated.
LANG="en_US.utf8"
|
Code: |
mkrsn@client02 ~ $ env | grep "LANG\|LC_"
LANGUAGE=en_US
LC_ADDRESS=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LANG=en_US.utf8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
|
Code: |
client02 ~ # grep -ri "LANG=C" /etc/
/etc/conf.d/auditd:AUDITD_LANG=C
client02 ~ # grep -ri "ASCII" /etc/
/etc/texmf/texmf.d/20sizes.cnf:% ignored. If file names in sources and DVI or XDV files are ASCII
/etc/init.d/termencoding: # Set terminal encoding to either ASCII or UNICODE.
/etc/init.d/termencoding: local termencoding="%@" termmsg="ASCII"
/etc/init.d/keymaps: local wkeys= kmode="-a" msg="ASCII"
/etc/init.d/keymaps: # Set terminal encoding to either ASCII or UNICODE.
/etc/mime.types:text/vnd.ascii-art ascii
grep: /etc/udev/hwdb.bin: binary file matches
/etc/vim/vimrc: " (g:added_fenc_utf8), assume that a file with only ASCII characters (or no
client02 ~ # env | grep "LANG\|LC_"
LANG=en_US.utf8
|
|
|
Back to top |
|
|
flexibeast Guru
Joined: 04 Apr 2022 Posts: 450 Location: Naarm/Melbourne, Australia
|
Posted: Fri Sep 27, 2024 12:39 am Post subject: |
|
|
Hmm .... What's the output of `locale -a`? |
|
Back to top |
|
|
mkrsn n00b
Joined: 26 Dec 2020 Posts: 10
|
Posted: Fri Sep 27, 2024 9:54 am Post subject: |
|
|
Code: |
client02 ~ # locale -a
C
C.utf8
de_DE.utf8
en_US.utf8
POSIX
|
hmm.... I don't have any clue where C comes from....
[edit1]
It seems that having C there is some sort of default behavior. I've checked it on different machines (ubuntu's & headless gentoo's, gentoo's with X or wayland), they all have C there.
[/edit1] |
|
Back to top |
|
|
flexibeast Guru
Joined: 04 Apr 2022 Posts: 450 Location: Naarm/Melbourne, Australia
|
Posted: Fri Sep 27, 2024 11:21 am Post subject: |
|
|
Yeah, the "C" locale is the default locale.
Doing some searches, i found this comment (via this discussion):
Quote: | It is the long standing incompatibility between locale support in KDE/Qt and locale support in glibc/POSIX. KDE supports much wider range of locale combinations than glibc.
See as example
https://bugs.kde.org/show_bug.cgi?id=403580 |
|
|
Back to top |
|
|
koschi Tux's lil' helper
Joined: 09 Oct 2004 Posts: 132 Location: Gerlingen, DE
|
Posted: Thu Nov 07, 2024 6:42 pm Post subject: |
|
|
Hi,
marking it as "solved" since it doesn't seem to be a Gentoo system configuration thing. _________________ Der Digitalrechner ist ein Vollidiot mit einer einseitigen Begabung im schnellen Addieren. |
|
Back to top |
|
|
|