Here is what locale reports after I log back in: ~/Desktop $ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=en_US.utf8 LC_TIME=en_US.utf8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=en_US.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=en_US.utf8 LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Here is what my /etc/default/locale looks like: ~/Desktop $ cat /etc/default/locale LANG=en_US.UTF-8 LC_TIME=en_DK.UTF-8As you can see LC_TIME is set to en_DK in /etc/default/locale but locale is not reporting this when it is run. I did #1 and #2 before posting here, before putting LC_TIME at /etc/default/locale. I reconfirmed that it is as you say it should be when running locale -a.
Here is what locale reports after I log back in: ~/Desktop $ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=en_US.utf8 LC_TIME=en_US.utf8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=en_US.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=en_US.utf8 LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Here is what my /etc/default/locale looks like: ~/Desktop $ cat /etc/default/locale LANG=en_US.UTF-8 LC_TIME=en_DK.UTF-8As you can see LC_TIME is set to en_DK in /etc/default/locale but locale is not reporting this when it is run.
I did #1 and #2 before posting here, before putting LC_TIME at /etc/default/locale. I reconfirmed that it is as you say it should be when running locale -a.
Here is what locale reports after I log back in: ~/Desktop $ locale LANG=en_US.UTF-8 LANGUAGE= LC_CTYPE="en_US.UTF-8" LC_NUMERIC=en_US.utf8 LC_TIME=en_US.utf8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=en_US.utf8 LC_MESSAGES="en_US.UTF-8" LC_PAPER=en_US.utf8 LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Here is what my /etc/default/locale looks like: ~/Desktop $ cat /etc/default/locale LANG=en_US.UTF-8 LC_TIME=en_DK.UTF-8As you can see LC_TIME is set to en_DK in /etc/default/locale but locale is not reporting this when it is run.
On 2017-05-26 18:05, Greg Wooledge wrote:
On Fri, May 26, 2017 at 11:54:14AM -0400, gwmfms6@openmailbox.org wrote:Thank you.You forgot to include the mailing list.I have already done #1 and #2.Did it work?#3 is what I needDid it work?but I want them permanent. I am fine with it being system-wide for every login (ie, /etc/default/locale but as I saidputting them doesn't work). I will also go to the trouble of configuringfor each user if this is the only way to make these variables "permanent." How do I make these settings permanent?If you actually did put them in /etc/default/locale then I am confusedabout what you're asking, or what's actually wrong. PAM logins in jessie(sshd, console login) are configured by default to read environmentvariables from /etc/default/locale via the /etc/pam.d/* files that contain"pam_env.so readenv=1 envfile=/etc/default/locale" or similar.If you log out and back in, and run "locale" with no arguments, what doesit say? Is it possible that your desktop environment is overwriting whatever PAM sets in the environment? Try testing via a console or ssh login, and see if it's different there. (E.g. "ssh localhost" and then run "locale".) If you get a different result from this, that would be *highly* significant. What desktop environment or window manager are you actually using? How are you logging in? (Console + startx, or lightdm, or gdm3, or some other display manager....)