#1059086 accountsservice: "Language 'C.utf8' set for user X is invalid" in the logs

Package:
accountsservice
Source:
accountsservice
Description:
query and manipulate user account information
Submitter:
Vincent Lefevre
Date:
2024-05-14 10:39:04 UTC
Severity:
normal
#1059086#5
Date:
2023-12-20 03:36:00 UTC
From:
To:
I get entries like

  accounts-daemon[1147]: Language 'C.utf8' set for user X is invalid

in the journalctl output.

This is probably because I have the LANG environment variable set to
"C.UTF-8". But this is a valid locale.

Note also that doing "dpkg-reconfigure locales" and choosing C.UTF-8
also has the effect to set LANG=C.UTF-8 in /etc/default/locale.