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 09:18:08 +0100 Message-ID: <87tugf881r.fsf@gnus.org> References: <834k8fw62v.fsf@gnu.org> <87y25r8968.fsf@gnus.org> <83mtm7upc4.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="39546"; 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 Third To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 09:19:09 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 1mmAjF-000A8g-P0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 09:19:09 +0100 Original-Received: from localhost ([::1]:49774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmAjE-0000yv-T5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 03:19:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmAj8-0000yZ-NG for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 03:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmAj8-000324-Fj for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 03:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmAj8-0001H6-Au for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 03:19: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 08:19: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.16368779034846 (code B ref 51832); Sun, 14 Nov 2021 08:19:02 +0000 Original-Received: (at 51832) by debbugs.gnu.org; 14 Nov 2021 08:18:23 +0000 Original-Received: from localhost ([127.0.0.1]:49075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmAiV-0001G6-Bq for submit@debbugs.gnu.org; Sun, 14 Nov 2021 03:18:23 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:58076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmAiT-0001Ft-F1 for 51832@debbugs.gnu.org; Sun, 14 Nov 2021 03:18:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=K0NfSL3R5um7gAQRKIUPXZvF+1DyOXiLRksh4eWKPmQ=; b=Nay2MbvRxzslGpMJei68OeJqcW eEY5+5/KmrXsiac3qQchf/HVW1xtn1B/YYdeFjpSls6ze8rZDiKFqAg+MP9Kh7JDC5F/UVSbp8+zr rnNqh62diY2io001sG1Aee7qnj1GJLiKhxQIAWf/fjr+NguUabmo5NFnNx4OaMuH5Fvc=; 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 1mmAiJ-000253-Sx; Sun, 14 Nov 2021 09:18:14 +0100 X-Now-Playing: Schneider TM's _The 8 Of Space_: "The Trip (Is The Goal)" In-Reply-To: <83mtm7upc4.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Nov 2021 10:13:47 +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:219914 Archived-At: Eli Zaretskii writes: > It could be useful to replace the pipe with redirection to a file, and > see what you get when invoking the command from Emacs and from a shell > prompt outside Emacs. Good point. I tried that now (with "| cat > /tmp/" to get a pipe in there), and the contents that were written to file were correct utf-8. Mysterious. Could the problem be in pbcopy -- that's assuming something about the coding system when run from inside Emacs somehow? That doesn't sound very likely, but... I've added Alan to the CCs; perhaps he has some insights here. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no