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

From: Eli Zaretskii <eliz <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org, "Paul W. Rankin" <hello <at> paulwrankin.com>,
 39248 <at> debbugs.gnu.org
Subject: Re: bug#39248: format-time-string ignores user's preferred locale
Date: Thu, 23 Jan 2020 07:56:29 +0200
On January 23, 2020 5:48:16 AM GMT+02:00, "Paul W. Rankin" <hello <at> paulwrankin.com> wrote:
> Calling function (format-time-string "%x") will output incorrect time
> string, ignoring user's preferred locale.
> 
> * Steps to reproduce:
> 
> 1. ensure locale is correct with M-x getenv RET LANG RET
>     -> en_AU.UTF-8
> 2. M-: (format-time-string "%x") RET
>     -> "01/23/20"
> 3. repeat for env LC_TIME
> 
> * Expected results:
> 
> The format for %x as per the docs:
>     %x is the locale’s "preferred" date format.


What is your value of system-time-locale?





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.