Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Locale differences between user and root

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
ralphb
Posts: 20
Joined: 2022-05-27 09:09
Has thanked: 1 time

[SOLVED] Locale differences between user and root

#1 Post by ralphb »

Last week I switched from Kubuntu to Debian, which was generally pretty straight-forward. But there is a locale problem I don't understand.

On my system, I have both en_US and de_DE locales generated, but then set the en_US locale as active. For root, everything is fine:

Code: Select all

cassiopeia:~# locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
But as user, I get this result:

Code: Select all

cassiopeia ~ > locale
LANG=de_DE.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
I've checked my local and global shell config files, but there is nothing about locales. Neither does Konsole (where I've tested this) have a locale setting. Also, this:

Code: Select all

cassiopeia:~# cat /etc/default/locale 
#  File generated by update-locale
LANG=en_US.UTF-8
LANGUAGE="en_US.UTF-8"
So why the difference? It seems that there is a setting I don't know about.
Last edited by ralphb on 2022-05-27 10:02, edited 1 time in total.

ralphb
Posts: 20
Joined: 2022-05-27 09:09
Has thanked: 1 time

Re: Locale differences between user and root

#2 Post by ralphb »

Oh wait, I found it -- KDE's regional setting were set to de_DE, so that was a quick fix.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: Locale differences between user and root

#3 Post by sunrat »

Please edit the title of your first post to add [SOLVED].
And welcome!
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

Post Reply