all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Gustav Hållberg" <gustav@gmail.com>
To: 11208@debbugs.gnu.org
Subject: bug#11208: 23.4; shell-command-on-region does not {de,en}code as documented
Date: Mon, 9 Apr 2012 13:09:07 +0200	[thread overview]
Message-ID: <CAFBaKAzf3ot3=uvemU=GBSv77_kt30ofaq159Hiop4SkP2LGFA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1018 bytes --]

             reply	other threads:[~2012-04-09 11:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 11:09 Gustav Hållberg [this message]
2012-04-09 16:58 ` bug#11208: 23.4; shell-command-on-region does not {de,en}code as documented Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFBaKAzf3ot3=uvemU=GBSv77_kt30ofaq159Hiop4SkP2LGFA@mail.gmail.com' \
    --to=gustav@gmail.com \
    --cc=11208@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.