• Re: LC_TIME set incorrectly

    From Greg Wooledge@21:1/5 to Nils on Tue Mar 11 19:00:02 2025
    On Tue, Mar 11, 2025 at 17:40:35 +0000, Nils wrote:
    riccy@riccy:~$ cat /etc/default/locale
    # File generated by update-locale
    LANG=en_US.UTF-8
    LC_TIME=de_DE.UTF-8

    (after a reboot)
    riccy@riccy:~$ echo $LC_TIME
    en_DE.UTF-8

    Searching /etc for the config string reveals nothing:
    riccy@riccy:~$ sudo grep -r en_DE /etc
    riccy@riccy:~$

    Any ideas what could be going on here? This is a Debian Bookworm install.

    It might be coming from one of the user's dot files. You can try
    these:

    PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ilxc : 2>&1 | grep en_DE
    PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ixc : 2>&1 | grep en_DE

    The first one launches a login shell, and the second launches a non-login shell. If that definition is coming from a dot file read by their
    shell, it should show up in one or both of those.

    If it's not coming from the user's shell config, then my next guess would
    have been PAM, but I'm pretty sure all the PAM configs are in /etc.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nils@21:1/5 to All on Tue Mar 11 18:50:01 2025
    Hi everyone,

    I am helping a friend fix this system, and he is having a weird issue causing his LC_TIME to be en_DE.UTF-8.

    I have already added a line to the config file attempting to override this:

    riccy@riccy:~$ cat /etc/default/locale
    # File generated by update-locale
    LANG=en_US.UTF-8
    LC_TIME=de_DE.UTF-8

    (after a reboot)
    riccy@riccy:~$ echo $LC_TIME
    en_DE.UTF-8

    Searching /etc for the config string reveals nothing:
    riccy@riccy:~$ sudo grep -r en_DE /etc
    riccy@riccy:~$

    Any ideas what could be going on here? This is a Debian Bookworm install.

    Thank you
    Nils

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nils@21:1/5 to All on Tue Mar 11 19:10:01 2025
    On Tuesday, March 11, 2025 6:52:41 PM GMT+1 Greg Wooledge wrote:
    It might be coming from one of the user's dot files. You can try
    these:

    Thanks! That seems to be it:

    $ sudo su -- root -c env | grep LC_TIME
    LC_TIME=de_DE.UTF-8

    I wonder if KDE has messed something up here as it has internal locale configuration.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nils@21:1/5 to All on Tue Mar 11 22:40:02 2025
    On Tuesday, March 11, 2025 10:21:07 PM GMT+1 George at Clug wrote:
    The Debian-specific /etc/timezone will no longer be supported by systemd-timedated, as it is no longer useful and its functionality has been subsumed into /etc/localtime, and tzdata will no longer create it.

    That looks like it's only relevant for time sync, which is not an issue here.

    I have asked him to change the time locale to de_DE in the KDE settings. I'll report back if he reports back that that didn't help!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From George at Clug@21:1/5 to All on Tue Mar 11 22:30:01 2025
    On Wednesday, 12-03-2025 at 05:01 Nils wrote:
    On Tuesday, March 11, 2025 6:52:41 PM GMT+1 Greg Wooledge wrote:
    It might be coming from one of the user's dot files. You can try
    these:

    Thanks! That seems to be it:

    $ sudo su -- root -c env | grep LC_TIME
    LC_TIME=de_DE.UTF-8

    I wonder if KDE has messed something up here as it has internal locale configuration.

    I received this message, which may have something to do with the problem? Systemd ?

    The Debian-specific /etc/timezone will no longer be supported by systemd-timedated, as it is no longer useful and its functionality has been subsumed into /etc/localtime, and tzdata will no longer create it.

    =============================================================================================

    apt-listchanges: News
    ---------------------

    systemd (253~rc2-1) experimental; urgency=medium

    TuxOnIce is no longer supported directly (via an out-of-tree patch)
    for hibernation. TuxOnIce users should instead use the environment
    variable $SYSTEMD_BYPASS_HIBERNATION_MEMORY_CHECK=1 (i.e.: set it on
    the kernel command line).

    The Debian-specific /etc/default/locale will now be made into a
    symlink to the distribution-agnostic /etc/locale.conf. The content
    format is compatible, so at upgrade time if /etc/default/locale
    exists it will be copied to /etc/locale.conf, if the latter does not
    exist.
    The Debian-specific /etc/timezone will no longer be supported by
    systemd-timedated, as it is no longer useful and its functionality
    has been subsumed into /etc/localtime, and tzdata will no longer
    create it.

    The journal 'audit' feature is no longer patched to be disabled by
    default, and instead we rely on the fact that the unit
    'systemd-journald-audit.socket' is disabled by default. If you enabled
    this in the past by setting 'Audit=yes' in a configuration file, you
    will also need to enable the socket unit.

    -- Luca Boccassi <[email protected]> Wed, 08 Feb 2023 20:36:58 +0000

    (press q to quit) =============================================================================================






    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)