From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51832: Piping unicode text in `shell-command' Date: Sun, 14 Nov 2021 12:56:14 +0200 Message-ID: <83czn3uhtd.fsf@gnu.org> References: <834k8fw62v.fsf@gnu.org> <87y25r8968.fsf@gnus.org> <83mtm7upc4.fsf@gnu.org> <87tugf881r.fsf@gnus.org> <83k0hbuosm.fsf@gnu.org> <87h7cf84l1.fsf@gnus.org> <87czn383z6.fsf@gnus.org> <83h7cfuixu.fsf@gnu.org> <9EB4417D-2457-46AD-9198-E42BBAF11071@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13524"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51832@debbugs.gnu.org, larsi@gnus.org, alan@idiocy.org, tor.a.s.kringeland@ntnu.no To: Philipp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 11:58:08 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 1mmDD6-0003IT-1T for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 11:58:08 +0100 Original-Received: from localhost ([::1]:39638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmDD5-00009a-2u for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 05:58:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmDC2-0006ke-Eu for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 05:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmDC2-00034q-4n for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 05:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmDC2-0005UY-4G for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 05:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Nov 2021 10:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51832 X-GNU-PR-Package: emacs Original-Received: via spool by 51832-submit@debbugs.gnu.org id=B51832.163688739621071 (code B ref 51832); Sun, 14 Nov 2021 10:57:02 +0000 Original-Received: (at 51832) by debbugs.gnu.org; 14 Nov 2021 10:56:36 +0000 Original-Received: from localhost ([127.0.0.1]:49260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmDBb-0005Tn-NX for submit@debbugs.gnu.org; Sun, 14 Nov 2021 05:56:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmDBa-0005TX-BX for 51832@debbugs.gnu.org; Sun, 14 Nov 2021 05:56:34 -0500 Original-Received: from [2001:470:142:3::e] (port=50974 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmDBU-0002y3-3X; Sun, 14 Nov 2021 05:56:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Tuwxb9KX8GRSmCyjBuap2ljWvViI4u5jkJ0ANzcjQh8=; b=Zw/n0Ne4OaaV 6LlSN8OlRWNbH2v2dH/k7aYefjd2GNRCOhbldgVWyfmW4WBsAFlmyoFlqeosHujknPfLtsGYsl+Uv 1BmMtS3qUyJJbHUVNYef3f/ctOhittnDJezOmPDWdIlqna9dNiksvYwXE7tjTJNYcC+fP4BBJFsyI ckwdLtbg3FmuW1BCDzFeT3RQSqGDDLkqCB6AOK9t+/NZmdX9no7x7PT7QUory64ngl+91P+QPw/hb fmgUEU389lU1GPybk4gNMeW+Xcrimplq+l+XNygSHAZj+MsE8fqR12KprizDH7DmMO0Ql4KekKh60 ei9U0RQVq5KdnUORqZQWnQ==; Original-Received: from [87.69.77.57] (port=2331 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmDBT-0001sQ-Mt; Sun, 14 Nov 2021 05:56:28 -0500 In-Reply-To: <9EB4417D-2457-46AD-9198-E42BBAF11071@gmail.com> (message from Philipp on Sun, 14 Nov 2021 11:41:38 +0100) 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:219927 Archived-At: > From: Philipp > Date: Sun, 14 Nov 2021 11:41:38 +0100 > Cc: Lars Ingebrigtsen , > tor.a.s.kringeland@ntnu.no, > 51832@debbugs.gnu.org, > alan@idiocy.org > > > I asked once why we push LANG into the environment, instead of calling > > setlocale, which would only affect Emacs. I don't think I saw an > > answer to that question, or did I miss it? > > > > AIUI the intention is that this should affect subprocesses started from Emacs. At least that's how I interpret the comment > > /* macOS doesn't set any environment variables for the locale when run > from the GUI. Get the locale from the OS and set LANG. */ Why is that needed? And if it is needed, how come we are setting LANG to an invalid locale and the system somehow sets it to the correct locale?