From: Eli Zaretskii <eliz@gnu.org>
To: Sean McLaughlin <seanmcl@gmail.com>
Cc: 11026@debbugs.gnu.org
Subject: bug#11026: 23.3; call-process-region deletes unicode chars
Date: Fri, 16 Mar 2012 20:57:22 +0200 [thread overview]
Message-ID: <83r4wsv0fh.fsf@gnu.org> (raw)
In-Reply-To: <CAO4dZbfL=t_bvndZ7RV3=OUQqecJpt8Z=WK+1d4sz-d2d7Y92w@mail.gmail.com>
> From: Sean McLaughlin <seanmcl@gmail.com>
> Date: Fri, 16 Mar 2012 12:07:55 -0400
>
> Create a buffer called 'bug' with multi-byte chars. For example, with
> the contents
>
> Alpha = α
>
> Run (call-process-region (point-min) (point-max) "cat" t t) in that
> buffer. It deletes the non-ascii unicode chars and leaves everything
> else intact.
This is not a bug, but a cockpit error.
You need to bind coding-process-for-write to something sensible, like
utf-8. Otherwise, `cat' will get unpredictable sequence of bytes
instead of the Unicode character, and will respond with another
unpredictable sequence.
I think this bug report should be closed.
next prev parent reply other threads:[~2012-03-16 18:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 16:07 bug#11026: 23.3; call-process-region deletes unicode chars Sean McLaughlin
2012-03-16 18:57 ` Eli Zaretskii [this message]
2012-03-16 19:03 ` Sean McLaughlin
2012-03-16 19:06 ` Sean McLaughlin
2012-03-17 22:19 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r4wsv0fh.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=11026@debbugs.gnu.org \
--cc=seanmcl@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).