Bug#961199: accountsservice: Some locales are set throught /etc/locale.conf

Otyugh otyugh at riseup.net
Thu May 21 11:19:23 BST 2020


Package: accountsservice
Version: 0.6.55-2
Severity: normal

Dear Maintainer,

Using Debian bullseye, after installation with french (fr_FR) locale I saw that some LC_ where still en_US (ie : LC_TIME).
After a bit of investigating I found that they were "forced" using the file /etc/locale.conf

Switching locale with "dpkg-reconfigure locales" don't apply on the LC_ listed in locale.conf

I looked what could generate such situation, and found that the script "/usr/share/language-tools/save-to-pam-env" which is part of accountsservice is doing things on all the same LC_ concerned.
The fast&dirty workaround I found to get my locale as expected :

$ sed -i "s|'LC_NUMERIC' 'LC_TIME' 'LC_MONETARY' 'LC_PAPER' 'LC_NAME'|'LC_NAME'|" "/usr/share/language-tools/save-to-pam-env"

I just tested doing that, and it seems to work. I don't know what was the meaning behind this part of the script, but it's problematic. accountsservice was installed as dependance to mugshot ; I didn't intended to have my locale frozed because of that !



More information about the Pkg-freedesktop-maintainers mailing list