GNU bug report logs -
#11208
23.4; shell-command-on-region does not {de,en}code as documented
Previous Next
Reported by: Gustav Hållberg <gustav <at> gmail.com>
Date: Mon, 9 Apr 2012 16:14:01 UTC
Severity: normal
Found in version 23.4
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11208 in the body.
You can then email your comments to 11208 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11208
; Package
emacs
.
(Mon, 09 Apr 2012 16:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Gustav Hållberg <gustav <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 09 Apr 2012 16:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Mon, 09 Apr 2012 17:02:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Gustav Hållberg <gustav <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 09 Apr 2012 17:02:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 11208-done <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 9 Apr 2012 13:09:07 +0200
> From: Gustav Hållberg <gustav <at> gmail.com>
>
> 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.
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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 08 May 2012 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 12 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.