View previous topic :: View next topic |
Author |
Message |
koschi Tux's lil' helper
Joined: 09 Oct 2004 Posts: 128 Location: Gerlingen, DE
|
Posted: Sat Sep 21, 2024 4:52 am Post subject: 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. |
|
Back to top |
|
|
druggo Guru
Joined: 24 Sep 2003 Posts: 302 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: 128 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: 302 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 |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|