GNU bug report logs - #51321
29.0.50; date in modelines

Previous Next

Package: emacs;

Reported by: Niels Søndergaard <nisoni <at> algon.dk>

Date: Thu, 21 Oct 2021 15:26:02 UTC

Severity: normal

Tags: patch

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel MartĂ­n <mardani29 <at> yahoo.es>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: nisoni <at> algon.dk, 51321 <at> debbugs.gnu.org
Subject: bug#51321: 29.0.50; date in modelines
Date: Sat, 23 Oct 2021 14:52:14 +0200
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> 
>> It depends on how you start Emacs.  The common case on macOS is that
>> people start Emacs from the GUI, and in that case the OS doesn't
>> configure the locale environment variables.  What the NS port does is it
>> uses the OS API to get the locale and applies the environment variables
>> manually (see ns_init_locale in nsterm.m).
>
> Thanks, I think that explains the issue.
>
>> I see that ns_init_locale only sets LANG, which seems insufficient for
>> this use case.  Perhaps we need to extend ns_init_locale to set other
>> LC_ variables as well (LC_TIME is the key here).
>
> Why not LC_ALL?

Yes, after consulting the POSIX spec, I think setting LC_ALL is the
right thing to do.

I've attached a patch that solves the issue.  If you think it's a good
idea, please install it for me.  Thanks.

[0001-Set-LC_ALL-to-the-current-locale-in-the-NS-port.patch (text/x-patch, attachment)]

This bug report was last modified 2 years and 257 days ago.

Previous Next


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