From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#51321: 29.0.50; date in modelines Date: Sat, 30 Oct 2021 08:41:00 -0700 Message-ID: References: <83sfwu8g9s.fsf@gnu.org> <05BFC277-0845-40E6-B10C-4582B9BCAB82@algon.dk> <83a6j28cnu.fsf@gnu.org> <13198AFD-F4C9-4DF3-91FF-4D71248DFAF4@algon.dk> <83sfwt7el8.fsf@gnu.org> <6C80587E-2E20-43AB-9B1E-15936BDB0797@algon.dk> <83cznx6teq.fsf@gnu.org> <837de453qg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3836"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , nisoni@algon.dk, Alan Third , 51321@debbugs.gnu.org To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 30 17:42:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgqUq-0000mH-R0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Oct 2021 17:42:16 +0200 Original-Received: from localhost ([::1]:51430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mgqUp-0006wU-3v for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Oct 2021 11:42:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgqUc-0006vz-HW for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 11:42:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mgqUc-0007eD-3i for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 11:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mgqUc-0005RH-1k for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 11:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Oct 2021 15:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51321 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51321-submit@debbugs.gnu.org id=B51321.163560846920827 (code B ref 51321); Sat, 30 Oct 2021 15:42:02 +0000 Original-Received: (at 51321) by debbugs.gnu.org; 30 Oct 2021 15:41:09 +0000 Original-Received: from localhost ([127.0.0.1]:58193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgqTk-0005Pr-Ly for submit@debbugs.gnu.org; Sat, 30 Oct 2021 11:41:09 -0400 Original-Received: from mail-pj1-f44.google.com ([209.85.216.44]:36785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgqTi-0005Oi-Rx for 51321@debbugs.gnu.org; Sat, 30 Oct 2021 11:41:07 -0400 Original-Received: by mail-pj1-f44.google.com with SMTP id o10-20020a17090a3d4a00b001a6555878a8so1463193pjf.1 for <51321@debbugs.gnu.org>; Sat, 30 Oct 2021 08:41:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=8nc1/I5tmWKvGxtB4pV4WISKr84YNbqTPdL/rBoNYck=; b=OUob/EztuRqfy1QQqp+VJTt3VhIc3rsPy15i+pJyYbiHtdrvfecKY66RAkGFvS8Qg8 7HZTSXodlg8C2gozdNt5rS0Pc2UL6HiLHVa+AR4z5VNZfTcQf0sPjdlkiuXmW6dS4SeE QeuzIlalYjX4Uxc7hASbNEsMshvw6LPxDYyRYtjK/HAdrrq+qV29IlSyzWRl6kO1xz+y fZVYC1RGmyOImK2Cr/h2pmwEc0HVeHQH0CTbQMGA9m6UZXRP0j3CoaYpPnQOoCzVV37J V2Uuik7an834XiKPUdvNSCV65l3sSGx31qjj0+a6S2L5ExKTqbmRR8cJI5gI0iLj117P U/xA== X-Gm-Message-State: AOAM532wX2RrLpPjMbZcaNcYhNE1oQBM6BylSbVjHdvurfNBmrzqOdVR mirzqyULaRHqcbSwwte5gKAkmLdpPNV+MifvQZo= X-Google-Smtp-Source: ABdhPJwXlsWuBLw67g+t2OVMMdsNDdydD9+/LnrwFEccWxCAmplu962mhyiqe8YlqUBh78G+pJo+ar3ccRfIt1jJvK4= X-Received: by 2002:a17:90b:17d2:: with SMTP id me18mr26860091pjb.132.1635608461307; Sat, 30 Oct 2021 08:41:01 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 30 Oct 2021 08:41:00 -0700 In-Reply-To: ("Daniel =?UTF-8?Q?Mart=C3=ADn?="'s message of "Sat, 23 Oct 2021 18:00:39 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:218619 Archived-At: Daniel Mart=C3=ADn writes: >> I've attached a patch that solves the issue. If you think it's a good >> idea, please install it for me. Thanks. This patch LGTM. I think it should be safe for emacs-28, and I've copied in Alan Third so that he can hopefully take a look. >>>From c27c60d344da64dac42c452e3a3aa7c35522a007 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Daniel=3D20Mart=3DC3=3DADn?=3D > Date: Sat, 23 Oct 2021 14:44:31 +0200 > Subject: [PATCH] Set LC_ALL to the current locale in the NS port > > * src/nsterm.m (ns_init_locale): If not already set, set LC_ALL to the > current locale ID so that dates, currencies, etc. use the settings > configured in the operating system. (Bug#51321) > --- > src/nsterm.m | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/nsterm.m b/src/nsterm.m > index aa29c13eb2..19ed750d21 100644 > --- a/src/nsterm.m > +++ b/src/nsterm.m > @@ -543,8 +543,10 @@ - (NSColor *)colorUsingDefaultColorSpace > NSString *localeID =3D [NSString stringWithFormat:@"%@.UTF-8", > [locale localeIdentifier]]; > > - /* Set LANG to locale, but not if LANG is already set. */ > + /* Set LANG and LC_ALL to locale, but not if the variables are > + already set. */ > setenv("LANG", [localeID UTF8String], 0); > + setenv("LC_ALL", [localeID UTF8String], 0); > } > @catch (NSException *e) > {