GNU bug report logs - #11026
23.3; call-process-region deletes unicode chars

Previous Next

Package: emacs;

Reported by: Sean McLaughlin <seanmcl <at> gmail.com>

Date: Fri, 16 Mar 2012 16:50:03 UTC

Severity: normal

Found in version 23.3

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 11026 <at> debbugs.gnu.org (full text, mbox):

From: Sean McLaughlin <seanmcl <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11026 <at> debbugs.gnu.org
Subject: Re: bug#11026: 23.3; call-process-region deletes unicode chars
Date: Fri, 16 Mar 2012 15:06:14 -0400
For the record, the variable is called coding-system-for-write.

2012/3/16 Sean McLaughlin <seanmcl <at> gmail.com>:
> I apologize.  I thought it was a bug because when I write the buffer
> to a file and use call-process it works.
>
> Thank you for your time.  I'll try to close the bug.
>
> Sean
>
> On Fri, Mar 16, 2012 at 2:57 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>>> From: Sean McLaughlin <seanmcl <at> 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.




This bug report was last modified 13 years and 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.