From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 12:13:17 2012 Received: (at submit) by debbugs.gnu.org; 9 Apr 2012 16:13:17 +0000 Received: from localhost ([127.0.0.1]:47009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHHDQ-0004Bn-8A for submit@debbugs.gnu.org; Mon, 09 Apr 2012 12:13:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54397) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHCU7-0004kQ-JC for submit@debbugs.gnu.org; Mon, 09 Apr 2012 07:10:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHCTC-0006gC-LL for submit@debbugs.gnu.org; Mon, 09 Apr 2012 07:09:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHCTC-0006fW-F7 for submit@debbugs.gnu.org; Mon, 09 Apr 2012 07:09:14 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHCTA-0002Ii-K1 for bug-gnu-emacs@gnu.org; Mon, 09 Apr 2012 07:09:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SHCT8-0006XW-Io for bug-gnu-emacs@gnu.org; Mon, 09 Apr 2012 07:09:11 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:56484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SHCT8-0006WU-Ad for bug-gnu-emacs@gnu.org; Mon, 09 Apr 2012 07:09:10 -0400 Received: by obbta14 with SMTP id ta14so6729793obb.0 for ; Mon, 09 Apr 2012 04:09:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=WSNSGngnCNB3rmalzydDqd4oXuVZutPD+buW5CY//ZE=; b=XoISDwDYlniaG5X6QZr6FHB9gQIypirZvhGI0D2oVa4AG75LYYs4PXhtr94EQOXQ0q 9F+z9kS6G55YL19D04xgkKcWoQlMGr/IUI+blFHzjBGJuDcbD/0oYwnGcRGuvGXr4l8b C9D3u5V4XfEck7/B9HrPfdrMw74QapVc0CzDLgqubrQsbmSkoipG3PxbG75/aZ/D26hP Va4w2DOVXe+uANkwnsLP5Lk0ED3z/m+geYNP0SdGFWgHLe/7foA6E9Dz3E0d0ns8YMJT B5Zln2uQ8Ff8mUqBiv+Vel1XE2VLi7IiCn5DQlys6wrI+9qhnL9jhXjZvD86d08mKW1O BPow== MIME-Version: 1.0 Received: by 10.182.136.41 with SMTP id px9mr9696568obb.21.1333969747774; Mon, 09 Apr 2012 04:09:07 -0700 (PDT) Received: by 10.182.1.1 with HTTP; Mon, 9 Apr 2012 04:09:07 -0700 (PDT) Date: Mon, 9 Apr 2012 13:09:07 +0200 Message-ID: Subject: 23.4; shell-command-on-region does not {de,en}code as documented From: =?ISO-8859-1?Q?Gustav_H=E5llberg?= To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=e89a8f646e75f50c4704bd3d081f X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 09 Apr 2012 12:13:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) --e89a8f646e75f50c4704bd3d081f Content-Type: text/plain; charset=ISO-8859-1 shell-command-on-region (M-|) does not do the {de,en}coding of I/O to the process as documented. It says (if I read it correctly) that it will use buffer-file-coding-system (at least unless coding-system-for-{read,write} are set) for output to and input from (if doing substitution with a prefix argument) the process. However, it "just" calls call-process-region which will use default-process-coding-system rather than buffer-file-coding-system. To try, 'emacs -q', switch to an empty buffer, and: C-x RET f iso-8859-7 RET C-SPC C-u M-| echo -e '\0245' RET This does not insert a drachma sign. However, if you run (setq default-process-coding-system '(iso-8859-7 iso-8859-7)) first, it does indeed produce a drachma. Output encoding works the same way. - Gustav --e89a8f646e75f50c4704bd3d081f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable shell-command-on-region (M-|) does not do the {de,en}coding of I/O to the p= rocess as documented.

It says (if I read it correctly) t= hat it will use buffer-file-coding-system (at least unless coding-system-fo= r-{read,write} are set) for output to and input from (if doing substitution= with a prefix argument) the process.

However, it "just" calls call-process-region = which will use default-process-coding-system rather than buffer-file-coding= -system.

To try, 'emacs -q', switch to an = empty buffer, and:

=A0 C-x RET f iso-8859-7 RET C-SPC C-u M-| echo -e '= ;\0245' RET

This does not insert a drachma sig= n.

However, if you run=A0(setq default-process-cod= ing-system '(iso-8859-7 iso-8859-7)) first, it does indeed produce a dr= achma.

Output encoding works the same way.

- Gustav

--e89a8f646e75f50c4704bd3d081f-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 09 13:01:58 2012 Received: (at 11208-done) by debbugs.gnu.org; 9 Apr 2012 17:01:58 +0000 Received: from localhost ([127.0.0.1]:47053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHHyY-0005NQ-4G for submit@debbugs.gnu.org; Mon, 09 Apr 2012 13:01:58 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:58996) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SHHyV-0005NH-E2 for 11208-done@debbugs.gnu.org; Mon, 09 Apr 2012 13:01:56 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M28009001TQAV00@a-mtaout22.012.net.il> for 11208-done@debbugs.gnu.org; Mon, 09 Apr 2012 20:00:50 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.57.204]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M28008QN1X8WKB1@a-mtaout22.012.net.il>; Mon, 09 Apr 2012 20:00:47 +0300 (IDT) Date: Mon, 09 Apr 2012 19:58:50 +0300 From: Eli Zaretskii Subject: Re: bug#11208: 23.4; shell-command-on-region does not {de,en}code as documented In-reply-to: To: Gustav =?iso-8859-1?Q?H=E5llberg?= Message-id: <83y5q47sfp.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE X-012-Sender: halo1@inter.net.il References: X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 11208-done Cc: 11208-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.2 (-) > Date: Mon, 9 Apr 2012 13:09:07 +0200 > From: Gustav H=E5llberg >=20 > shell-command-on-region (M-|) does not do the {de,en}coding of I/O = to the > process as documented. >=20 > It says (if I read it correctly) that it will use buffer-file-codin= g-system > (at least unless coding-system-for-{read,write} are set) for output= to and > input from (if doing substitution with a prefix argument) the proce= ss. >=20 > However, it "just" calls call-process-region which will use > default-process-coding-system rather than buffer-file-coding-system= . Thanks, I made the doc string match the implementation. The fix is committed as revision 107794 on the emacs-24 branch, and will be in Emacs 24.1. From unknown Sun Jun 15 08:44:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 08 May 2012 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator