Bug#877900: How to get 24-hour time on en_US.UTF-8 locale now?
On Fri, 8 Feb 2019 10:42:06 +0100 Aurelien Jarno wrote: > Yes, that's normal that only LANG is set, as it's the one with less > priority. That said there was clearly something setting LC_ALL to > en.US-UTF-8 before, you might want to grep /etc for that. When only LANG > is set, you should get and output like this one: Thanks, turns out in my case the "culprit" was LC_ALL getting passed from the ssh client each time, due to /etc/ssh/sshd_config: # Allow client to pass locale environment variables AcceptEnv LANG LC_* -- With respect, Roman
Bug#877900: How to get 24-hour time on en_US.UTF-8 locale now?
On Fri, 8 Feb 2019 10:21:41 +0100 Aurelien Jarno wrote: > What is the content of /etc/default/locale? it looks like you have an > additional entry than the LANG one set by dpkg-reconfigure locales. "dpkg-reconfigure locales" only writes LANG=C.UTF-8 (or any other accordingly) to that file. This results in the "locale" output that I posted above (including after a relogin or reboot). There were no lines aside from that in /etc/default/locale. I was able to get the desired result only by manually adding a line with "LC_ALL=C.UTF-8" to /etc/default/locale. # locale LANG=C.UTF-8 LANGUAGE= LC_CTYPE="C.UTF-8" LC_NUMERIC="C.UTF-8" LC_TIME="C.UTF-8" LC_COLLATE="C.UTF-8" LC_MONETARY="C.UTF-8" LC_MESSAGES="C.UTF-8" LC_PAPER="C.UTF-8" LC_NAME="C.UTF-8" LC_ADDRESS="C.UTF-8" LC_TELEPHONE="C.UTF-8" LC_MEASUREMENT="C.UTF-8" LC_IDENTIFICATION="C.UTF-8" LC_ALL=C.UTF-8 It is puzzling why this is required. -- With respect, Roman
Bug#877900: How to get 24-hour time on en_US.UTF-8 locale now?
So for those of us (the entire world), who have been relying on this behavior: > * en_US (.UTF-8) is used as the default English locale for all places that > don't have a specific variant (and often even then). Generally, technical > users use English as a system locale How do we roll-back what you have done here, and still get en_US.UTF-8 while retaining the proper 24-hour time? dpkg-reconfigure locales does not list "C.UTF-8" in the main "locales to generate" list, but does offer it on the next screen as "Default locale for the system environment". After selecting it, we get: # locale LANG=C.UTF-8 LANGUAGE= 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=en_US.UTF-8 But still: # date Thu 07 Feb 2019 09:53:47 AM UTC -- With respect, Roman