From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#51321: 29.0.50; date in modelines Date: Sat, 23 Oct 2021 18:00:39 +0200 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> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36124"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) Cc: nisoni@algon.dk, 51321@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 18:07:31 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 1meJYR-0009DR-45 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 18:07:31 +0200 Original-Received: from localhost ([::1]:43284 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meJYP-0001TS-J3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 12:07:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meJSA-0002iS-GG for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 12:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meJSA-0005pp-3S for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 12:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1meJS9-0008KO-ON for bug-gnu-emacs@gnu.org; Sat, 23 Oct 2021 12:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Oct 2021 16:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51321 X-GNU-PR-Package: emacs Original-Received: via spool by 51321-submit@debbugs.gnu.org id=B51321.163500485231990 (code B ref 51321); Sat, 23 Oct 2021 16:01:01 +0000 Original-Received: (at 51321) by debbugs.gnu.org; 23 Oct 2021 16:00:52 +0000 Original-Received: from localhost ([127.0.0.1]:36997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meJS0-0008Ju-BA for submit@debbugs.gnu.org; Sat, 23 Oct 2021 12:00:52 -0400 Original-Received: from sonic313-20.consmr.mail.ir2.yahoo.com ([77.238.179.187]:41040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1meJRw-0008Jc-8c for 51321@debbugs.gnu.org; Sat, 23 Oct 2021 12:00:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1635004841; bh=k1IuNa8Qdq1zER8HzeRKAJCm3QExtftHge7O4FCU4Jw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=BYJvD3Qj1jkoVT+V2c1hdxB9zEWHGVZvI45728+Ds9kTJtrxRqjKbT0q/J5s1NsVKO3efHr0WyDBse7qh0ufVX5zMfAGwNyfkIHw7sEPKF5Jim6U/7saRkCxIkbaDOCrNkTOBIesms63vyeqROGf5VdqvhQmKcZNESTkL78v5BqCij6y0vEl5PEUtysJk3IZjpltwJhMhEblO7EsgysdZHoL2PLILZvpknlCr7b+SyTQMEv+wpE7NtD+5zOa28eVwopAlOoMcOY3g9KY54XkpWeQ7782qTmTB2ODXgZV/YTVLMbKn7qnQcT8B7T98WpSm+4kR1OQY9XhDM+NK9UWoA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635004841; bh=PQkRYMaNJdsI86LnqPXTf5HcjbxnQC1x0xeO54QYi9y=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=lynchmd+/ko8HM32f+Wvr4Xk2C/2h71MF7XkgXENLGiBS4OqTQkTsjNUCz4Hyit7KzZAtgwtBEBB7Z2wDO5Jpih/Toh3JKVKRf4gRT6GN1uJtP3oq78TVM/1SnnfOeR5dsjh1rmdHK7hZx1BRj6ivcrzs51/0LCfgNQYX/VDN/zvdWfmYQzm5vmjzLGshOnJb3C8xDsRRml96qffU+lAcuZue5FPAsoX255xkb8FlSVG58nzZ4T7L/ZT1MQzAe40FY+5IohYXCTUeeuMQsT1NtbytCUyeeVip+Kvzt813YcE9EKMP3aRQoW3QluWnNCx+qDzYzS3RhCNCyHh0NzTxw== X-YMail-OSG: GwpubfAVM1lP8eHvN8Y8mMaHGNqfbh1sNcXDnS9ZdYiQDm7xO6hKFqQqC2_rKyX w6zctkyv7hEulUgvtmBgROcNZbuRY3coUA8ogu00e4gnTVC_eneYrXFITqbMqUmKNI0cxothAZ10 EY6Vrz.wYoM1U74IuXg3Lsvhq0_wl1EyBTk6xsGUVgNwngTnWytG2oVeKq8aqvU6cxkTKNHmdwbS VBwXyMN5W.8UkHlzrCwaeGrSmKGI44sRgJDh91bm0XaPUzyFSw6gNJXZjNXYwSijtD9NOmyQGlRh WQaEwlYo1SObKwSEPv3iQnib4fbuw4isROjYeJ_y3uu0IKF5ZKaxM09gqrwJek8lB8CaVhOOPsTg 6nQ57lNeAToaOilrnflxnSscAveh0xuJItM3Qi3vW4jIFJDOz1gNNRrHHF6zlYT2FVzVhJUYIqpw Zaw6MoaTLbm6_8zXO7Mzh32bq.oOA.BoCQvqzaLHQMfg3K9lMGakmPKxqoXLyMmk7PUQl5cDVH_9 nILcfNN0Dy06Q8uYhTnS0AirrKccLJ9ML2hLGYgArS28mlhadAfgDwJbGZxqx8roCsHtuyYb_TQT aRNlIM5MMtRl372_8PzJQCSbpU0CVi6wfVYOMwB7LM81Ifa0jmcrjfkkX533xegKcJI3OzaXwILJ Ccgh3sYvoPEenv90G7YZKsGWazZsTE9zesTlL7PX522EQV_TncItSGX62IJ2lQaNpmHRw3zCdtJA gFre606p7IkFxNkoohwllvUVh419M9pxM.V4cv4jlRz6.HNiY7RNPM8HRW1QyUyFZlLw4i0pDQTV 1jkKBAgPO51WtUbNDxZjKLRbpbckjAeZLOWG8JWC0i X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ir2.yahoo.com with HTTP; Sat, 23 Oct 2021 16:00:41 +0000 Original-Received: by kubenode521.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID c600a2f644e65d46b5938e6729330509; Sat, 23 Oct 2021 16:00:40 +0000 (UTC) In-Reply-To: ("Daniel =?UTF-8?Q?Mart=C3=ADn?= via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\""'s message of "Sat, 23 Oct 2021 14:52:14 +0200") X-Mailer: WebService/1.1.19198 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:218000 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Daniel Mart=C3=ADn via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > > I've attached a patch that solves the issue. If you think it's a good > idea, please install it for me. Thanks. Sorry, there was a small mistake. I attach a corrected patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Set-LC_ALL-to-the-current-locale-in-the-NS-port.patch >From c27c60d344da64dac42c452e3a3aa7c35522a007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= 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 = [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) { -- 2.31.0 --=-=-=--