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 #41 received at 39248 <at> debbugs.gnu.org (full text, mbox):

From: "Paul W. Rankin" <hello <at> paulwrankin.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Glenn Morris <rgm <at> gnu.org>, Eli Zaretskii <eliz <at> gnu.org>,
 Alan Third <alan <at> idiocy.org>, 39248 <at> debbugs.gnu.org
Subject: Re: bug#39248: format-time-string ignores user's preferred locale
Date: Sat, 25 Jan 2020 19:36:03 +1000
On Fri, Jan 24 2020, Paul Eggert wrote:
> However, Emacs currently sets the LANG environment variable in
> ns_init_locale *after* Emacs uses LANG to set the LC_TIME locale,
> which is not what is wanted here. So, please try the attached patch to
> master.

Thank you, this patch works; Emacs.app launched from Finder on macOS now
gives:

    (format-time-string "%x")
    "25/01/2020"

GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.2.0, NS appkit-1894.20
Version 10.15.2 (Build 19C57)) of 2020-01-25




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.