From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#51832: Piping unicode text in `shell-command' Date: Sun, 14 Nov 2021 10:19:13 +0100 Message-ID: <87lf1r857y.fsf@gnus.org> References: <834k8fw62v.fsf@gnu.org> <87y25r8968.fsf@gnus.org> <83mtm7upc4.fsf@gnu.org> <87tugf881r.fsf@gnus.org> <83k0hbuosm.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="4752"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: tor.a.s.kringeland@ntnu.no, 51832@debbugs.gnu.org, alan@idiocy.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 10:20:30 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 1mmBgc-0000yb-GO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 10:20:30 +0100 Original-Received: from localhost ([::1]:42616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmBgb-0001j2-6L for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 04:20:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmBgB-0001ii-Kb for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 04:20:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmBgA-0000hW-Jg for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 04:20:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmBgA-0002rZ-Gf for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 04:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Nov 2021 09:20: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.163688156610938 (code B ref 51832); Sun, 14 Nov 2021 09:20:02 +0000 Original-Received: (at 51832) by debbugs.gnu.org; 14 Nov 2021 09:19:26 +0000 Original-Received: from localhost ([127.0.0.1]:49119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmBfa-0002qK-II for submit@debbugs.gnu.org; Sun, 14 Nov 2021 04:19:26 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:58518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmBfY-0002q7-UN for 51832@debbugs.gnu.org; Sun, 14 Nov 2021 04:19:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=0qoHpF9v8xeVsBlLMMjcOI7eVkHYDQtHEZd0z6r005s=; b=e4KtvzBv5taiRLdSXyfHhXS8sP O02mfQNzZKFR3XwyfKDXcuRTgCSqS/Q8WXWW69f5x9d8oBXnS+Y5r/R3iIZB3hEiKl8OWYG/y4bEw 84ToHavzHL/40vkVz90+rDAAl74ZHbLEJUzL+hxG0tfd3UAZUz32EuNdVqrsy902xHqU=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmBfO-0002Ue-V6; Sun, 14 Nov 2021 10:19:17 +0100 X-Now-Playing: Colleen's _The Tunnel and the Clearing_: "Revelation" In-Reply-To: <83k0hbuosm.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Nov 2021 10:25:29 +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:219917 Archived-At: Eli Zaretskii writes: > Maybe we set some locale-related environment variable, and that was > confuses pbcopy when it is run from Emacs? I've now followed the call tree, and we end up doing: (call-process-region (point) (point) shell-file-name nil (current-buffer) nil shell-command-switch "echo foo=F0=9F=98=80bar | pbcopy") And that fails, too. So it's not something that shell-command sets up (if it's a locale-related thing). Hm... Oh! I thought the original report said that this worked if run under M-x shell. But it doesn't -- I get the same garbled selection. (And it works fine in a shell outside Emacs.) So it could indeed be a locale setting in Emacs that's making pbcopy do the wrong thing.=20 --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no