Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #181422

Re: How to set ISO date/time with en_US.utf8 as system default?

From gwmfms6@openmailbox.org
Newsgroups linux.debian.user
Subject Re: How to set ISO date/time with en_US.utf8 as system default?
Date 2017-05-26 18:40 +0200
Message-ID <tLqro-8e2-19@gated-at.bofh.it> (permalink)
References <tLpvj-7E0-11@gated-at.bofh.it> <tLpF0-7Hk-27@gated-at.bofh.it> <tLpYm-83M-9@gated-at.bofh.it> <tLpYm-83M-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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-8


As 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-8


As 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-8


As 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 need
> 
> Did 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 said
>> putting them doesn't work). I will also go to the trouble of 
>> configuring
>> for 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 confused
> about what you're asking, or what's actually wrong.  PAM logins in 
> jessie
> (sshd, console login) are configured by default to read environment
> variables 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 
> does
> it 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....)

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-26 17:40 +0200
  Re: How to set ISO date/time with en_US.utf8 as system default? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-26 17:50 +0200
    Re: How to set ISO date/time with en_US.utf8 as system default? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-26 18:10 +0200
      Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-26 18:40 +0200
        Re: How to set ISO date/time with en_US.utf8 as system default? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-26 18:50 +0200
          Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-26 19:00 +0200
            Re: How to set ISO date/time with en_US.utf8 as system default? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-26 19:10 +0200
              Re: How to set ISO date/time with en_US.utf8 as system default? Curt <curty@free.fr> - 2017-05-27 12:20 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-27 14:40 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? Curt <curty@free.fr> - 2017-05-27 16:30 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-27 17:20 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? Curt <curty@free.fr> - 2017-05-27 17:40 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? rhkramer@gmail.com - 2017-05-27 20:10 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? Curt <curty@free.fr> - 2017-05-27 22:00 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? Frank <zuiderduin@gmx.com> - 2017-05-27 17:00 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-27 17:30 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? Jeremy Nicoll <jn.ml.dbn.25@letterboxes.org> - 2017-05-27 17:50 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? Nicolas George <george@nsup.org> - 2017-05-27 17:50 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-27 18:10 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? David Wright <deblis@lionunicorn.co.uk> - 2017-05-28 03:50 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-30 14:50 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-30 18:30 +0200
                RE: How to set ISO date/time with en_US.utf8 as system default? "Emanuele Bernardi" <e.berna@posteo.net> - 2017-05-30 18:50 +0200
                RE: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-31 16:10 +0200
          Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-26 19:00 +0200
            Re: How to set ISO date/time with en_US.utf8 as system default? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-26 19:10 +0200
              Re: How to set ISO date/time with en_US.utf8 as system default? gwmfms6@openmailbox.org - 2017-05-26 19:10 +0200
                Re: How to set ISO date/time with en_US.utf8 as system default? James Cloos <cloos@jhcloos.com> - 2017-05-27 20:50 +0200

csiph-web