GNU bug report logs - #39248
format-time-string ignores user's preferred locale

Previous Next

Package: emacs;

Reported by: "Paul W. Rankin" <hello <at> paulwrankin.com>

Date: Thu, 23 Jan 2020 03:54:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Paul W. Rankin" <hello <at> paulwrankin.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 39248 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: bug#39248: format-time-string ignores user's preferred locale
Date: Thu, 23 Jan 2020 16:44:11 +1000
On Thu, Jan 23 2020, Eli Zaretskii wrote:
>
> What is your value of system-time-locale?

system-time-locale -> nil

So, this works:

    (setq system-time-locale (getenv "LANG"))
    (format-time-string "%x")
    -> "23/01/2020"

But in the Elisp manual:

 -- Variable: system-time-locale
     This variable specifies the locale to use for formatting time
     values.  Changing the locale can cause messages to appear according
     to the conventions of a different language.  If the variable is
     ‘nil’, the locale is specified by environment variables in the
     usual POSIX fashion.

So the issue appears to be instead that ^this doesn't seem to be
happening...




This bug report was last modified 5 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.