Changing locales : weird behaviour

New to Debian (Or Linux in general)? Ask your questions here!

Changing locales : weird behaviour

Postby otyugh » 2020-05-19 22:21

Hey,
on debian testing doing
Code: Select all
dpkg-reconfigure locales
works as intended but somehow, every time, a few LC_ remains set to their old selves "en_US.UTF-8" (LC_ADRRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MONETARY...)
Why ? How can I change them without doing the work manually ?

EDIT : I can see that the "unchanged LC" are listed in /etc/locale.conf. What's doing here ?

EDIT2 : seem that the package accountsservice is the one doing that (the script is "save-to-pam-env". Weird. I don't get the point.
Last edited by otyugh on 2020-05-21 09:34, edited 1 time in total.
otyugh
 
Posts: 49
Joined: 2014-06-17 23:11

Re: Changing locales : weird behaviour

Postby otyugh » 2020-05-21 09:32

Okay, found my fast&dirty workaround :
Code: Select all
sed -i "s|'LC_NUMERIC' 'LC_TIME' 'LC_MONETARY' 'LC_PAPER' 'LC_NAME'|'LC_NAME'|" "/usr/share/language-tools/save-to-pam-env"


Altought this is certainly not a good workaround, I don't even know why theses bits of code were there to begin with. I filled a bugrepport. I don't think it's normal that a mugshot dependance (accountsservice) would freeze some locales.
otyugh
 
Posts: 49
Joined: 2014-06-17 23:11


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable