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


View this message in rfc822 format

From: Alan Third <alan <at> idiocy.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: Glenn Morris <rgm <at> gnu.org>, "Paul W. Rankin" <hello <at> paulwrankin.com>, 39248-done <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: bug#39248: format-time-string ignores user's preferred locale
Date: Sun, 26 Jan 2020 10:26:00 +0000
On Sun, Jan 26, 2020 at 12:35:31AM -0800, Paul Eggert wrote:
> On 1/25/20 3:18 AM, Alan Third wrote:
> > On Thu, Jan 23, 2020 at 11:35:20PM -0800, Paul Eggert wrote:
> > >   #ifdef HAVE_NS
> > >     ns_pool = ns_alloc_autorelease_pool ();
> > > -#ifdef NS_IMPL_GNUSTEP
> > > -  /* GNUstep stupidly resets our locale settings after we made them.  */
> > > -  fixup_locale ();
> > > -#endif
> > 
> > Hi Paul, this LGTM, but I’m just curious if you’re sure we don’t need
> > that code above any more?
> 
> Although I don't use GNUstep and haven't tested the code, as I recall
> GNUstep initializes itself on its first call (which is why the fixup_locale
> call was there, as ns_alloc_autorelease_pool was the first call to GNUstep),
> and if so then we don't need fixup_locale there anymore since we now call
> fixup_locale earlier, just after calling ns_init_locale which calls NSLocale
> currentlocale should cause GNUstep to initialize itself.
> 
> If I'm wrong feel free to put that code back in, but in the meantime I
> installed the patch as-is, as Paul R. reports that it works for him.

No, sounds reasonable. Thanks for the explanation.
-- 
Alan Third




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

Previous Next


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