From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.bugs Subject: bug#51321: 29.0.50; date in modelines Date: Mon, 01 Nov 2021 17:45:25 +0300 Message-ID: References: <83sfwt7el8.fsf@gnu.org> <6C80587E-2E20-43AB-9B1E-15936BDB0797@algon.dk> <83cznx6teq.fsf@gnu.org> <837de453qg.fsf@gnu.org> <83bl35o95u.fsf@gnu.org> <83cznkm25j.fsf@gnu.org> <838ry8lzal.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29476"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (darwin) Cc: alan@idiocy.org, nisoni@algon.dk, stefan@marxist.se, 51321@debbugs.gnu.org, mardani29@yahoo.es, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 01 15:46:12 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 1mhYZe-0007Oq-0t for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Nov 2021 15:46:12 +0100 Original-Received: from localhost ([::1]:54280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhYZc-0005PQ-8Y for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Nov 2021 10:46:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhYZV-0005Oj-UG for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2021 10:46:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhYZV-0004Fm-LR for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2021 10:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhYZV-0004gI-KF for bug-gnu-emacs@gnu.org; Mon, 01 Nov 2021 10:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Filipp Gunbin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Nov 2021 14:46:01 +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.163577794317967 (code B ref 51321); Mon, 01 Nov 2021 14:46:01 +0000 Original-Received: (at 51321) by debbugs.gnu.org; 1 Nov 2021 14:45:43 +0000 Original-Received: from localhost ([127.0.0.1]:35836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhYZ7-0004fb-1Y for submit@debbugs.gnu.org; Mon, 01 Nov 2021 10:45:43 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhYZ4-0004fN-9d for 51321@debbugs.gnu.org; Mon, 01 Nov 2021 10:45:35 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 286E85C016D; Mon, 1 Nov 2021 10:45:29 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 01 Nov 2021 10:45:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm1; bh=/U9HK4+TdWQcTbMXSQZiRgFVXX kgFAo9tITRlDLAHwc=; b=BG6bukooPFwFJxQVdWP4fYhS9MMf/rqIIflpviYbqv eLcA2pCO0Ai+x1UVDncxMIFMuaEWMtvDpx7igrGzbT3hiQcxP3d1rt8Db4JaPMvj nKC05oBzBvSxv9P2SCqd3wlrSKl7QgGKLBVcj0JuBnGFAZl7Qj2Dxxj5b8++sb21 P+WhH0QNaFWQKjiuvWFmNSC9wi/SHN0OY8sVBYWfJjYGInB1bjw6iwmVf7dpOxSU ox8cnwI+zF2s+VCuVFmhyOFcKmrJfXCm2xZrktMEEQFJcHpe/NajNdqh27I6uG/1 Fdxw7bOi06UNuayi9XIVLumRbRFJh1Ii4DR5vyMguJBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=/U9HK4 +TdWQcTbMXSQZiRgFVXXkgFAo9tITRlDLAHwc=; b=ddyQe4cVO7CL2GIJPlqp9u bMqoTVWRGl/zMzfvTukccb6k8JfnJmfL7gEPFnN26n2MW3Sov65ubHcw9QfGDnjX Xk4TOtaWg880V3/J8Nx1jutMeUstM88BVXQsN3dKrkN1jYsjevGLFlk5ZHBy7926 OHtkHNOLBGtgs2LwMA/mW6N/kdfoOKHs3C2wePbnCH7DgfwUmTrom8T3q0TP5rtl z8kZnAg3Hl04qOxD/hNpWKlM9w0UbiXCkT3jhy5/rhabVZ5IYHcJADKXA+phRMgD HH8zyYCgK2OnZX9KVwKN7uADMeY2kZaTlHsWE20f/dIfN4qt0tgPf8atjo9MXS2A == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdehvddgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhgffffkgggtsehttdertddtredtnecuhfhrohhmpefhihhlihhp phcuifhunhgsihhnuceofhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmheqnecuggftrf grthhtvghrnhepvdevkeffvdeuvefhuddtjeehkedvueefveettddtveduudfgieffieev ieevhfdtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epfhhguhhnsghinhesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Nov 2021 10:45:27 -0400 (EDT) In-Reply-To: <838ry8lzal.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 01 Nov 2021 16:34:58 +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:218765 Archived-At: On 01/11/2021 16:34 +0200, Eli Zaretskii wrote: >> From: Filipp Gunbin >> Cc: alan@idiocy.org, larsi@gnus.org, nisoni@algon.dk, stefan@marxist.se, >> 51321@debbugs.gnu.org, mardani29@yahoo.es >> Date: Mon, 01 Nov 2021 17:21:36 +0300 >> >> >> So maybe we should check that the locale is valid before setting it... >> > >> > "Valid" in what sense? Is that locale not installed on your system, >> > or are you saying that it cannot exist? >> >> I think in the sense of 'locale -a | grep ru' in this case: >> >> ru_RU.ISO8859-5 >> ru_RU.CP866 >> ru_RU.CP1251 >> ru_RU.UTF-8 >> ru_RU.KOI8-R >> ru_RU >> >> Maybe it could exist, but it doesn't on macOS. >> >> > (And why does the warning come from Bash when it was Emacs who sets >> > the locale?) >> >> Forgot to tell - this output shows up when running shell command from >> emacs (M-! or similar). > > Hmm... actually, why do we call setenv instead of calling setlocale > directly? Doesn't macOS support setlocale? AFAIU, calling setlocale > would then only affect Emacs itself, not its sub-processes. Darwin seems to support setlocale..