From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tor Kringeland Newsgroups: gmane.emacs.bugs Subject: bug#51832: Piping unicode text in `shell-command' Date: Sun, 14 Nov 2021 04:10:10 +0100 Message-ID: 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="36352"; mail-complaints-to="usenet@ciao.gmane.io" To: 51832@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 08:06: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 1mm9ae-0009K0-KH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 08:06:12 +0100 Original-Received: from localhost ([::1]:45804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mm9ad-0007Iz-6H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 02:06:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm9aU-0007IF-T0 for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 02:06:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37447) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mm9aU-0002fe-Kp for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 02:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mm9aU-0005Y0-Gj for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 02:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tor Kringeland Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Nov 2021 07:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51832 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163687351821230 (code B ref -1); Sun, 14 Nov 2021 07:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Nov 2021 07:05:18 +0000 Original-Received: from localhost ([127.0.0.1]:48986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm9Zl-0005WL-Bs for submit@debbugs.gnu.org; Sun, 14 Nov 2021 02:05:17 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm5uT-0002gH-7M for submit@debbugs.gnu.org; Sat, 13 Nov 2021 22:10:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm5uS-0005pB-Vb for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 22:10:24 -0500 Original-Received: from mailgw101.it.ntnu.no ([129.241.56.177]:49234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm5uQ-0002xm-AM for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 22:10:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntnu.no; i=@ntnu.no; q=dns/txt; s=s1-1909-ntnu; t=1636859411; h=from : to : subject : date : message-id : mime-version : content-type : content-transfer-encoding : from; bh=sw0l6FKdmj9IoBeWEftFuWNsY1WgpiCD1UX6H94h6Wo=; b=PooUtMzuYyr25iJOLPeKmezP1HtU6VJ8scAr4mc2c9xgpw5tcAsCpEm9VBKcmCy7gYUxv ofTwnYSjiEGmPTteZJv+MB1TWHYXttmbstw+YImRcGpuc9Glg9O8R2Ax7JgrVc1fvIe8WGh vuusI1sMIkmLrvJaDXWcZGyue0JFpiafyI4rPPvXU+byM72V3y8tgmvj0et+rHGvBkbSKNT E8zeEQnCAQ4OtUTQ8Ke1xIQQcQay+hB3jnszlyO3cCpmSQ6bWQLdlMxITPrNEcj8QGHZcz3 mJlr2rw8K0UPVvzuzUC7jt+gBF7RMLCu8AU5x498EycmDLaBfnkSmOY0E4pw== Original-Received: from localhost (localhost [127.0.0.1]) by mailgw101.it.ntnu.no (Postfix) with ESMTP id E55D71DE1F60 for ; Sun, 14 Nov 2021 04:10:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mailgw101.it.ntnu.no Original-Received: from mailgw101.it.ntnu.no ([127.0.0.1]) by localhost (mailgw101.it.ntnu.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GDMoceCla7h9 for ; Sun, 14 Nov 2021 04:10:11 +0100 (CET) Original-Received: from localhost (unknown [37.120.203.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: takringe@ntnu.no) by mailgw101.it.ntnu.no (Postfix) with ESMTPSA id 95A4D1DE26B8 for ; Sun, 14 Nov 2021 04:10:11 +0100 (CET) Received-SPF: pass client-ip=129.241.56.177; envelope-from=tor.a.s.kringeland@ntnu.no; helo=mailgw101.it.ntnu.no X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 14 Nov 2021 02:05:16 -0500 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:219898 Archived-At: Running (shell-command "echo -n '=E6=82=9F' | pbcopy") or (shell-command "echo -n '=C3=B8=C3=B8=C3=B8=C3=B8' | pbcopy") fills the clipboard with `=C3=8A=C3=87=C3=BC' and `=E2=88=9A=E2=88=8F', res= pectively, while if I run the same commands in a terminal emulator outside Emacs I get back the original input. The same happens if I run the same shell commands in `eshell'. This happens when I run a recent build of Emacs 29 with `-Q' on macOS Catalina.