help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `write-region' writes different bytes than passed to it?


From: Stefan Monnier
Subject: Re: `write-region' writes different bytes than passed to it?
Date: Tue, 11 Dec 2018 11:36:13 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Yes, because "\xC1\xB2" just happens to be the internal multibyte
> representation of a raw-byte F2.  Raw bytes are always converted to
> their single-byte values on output, regardless of the encoding you
> request.

Maybe we shouldn't encode unibyte strings (under the assumption
that a unibyte string is already encoded: it's a sequence of bytes
rather than a sequence of chars).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]