[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-26 8f18d12: Improve documentation of decoding in
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] emacs-26 8f18d12: Improve documentation of decoding into a unibyte buffer |
Date: |
Sat, 25 May 2019 17:11:00 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> The internal representation of the decoded text could include both.
> If some of the bytes in the original byte stream couldn't be decoded
> using the specified coding-system, they will be represented as raw
> bytes, using 2-byte sequences. OTOH, Latin characters successfully
> decoded into codepoints less than 256 will take 1 byte.
> Again, this is just the internal representation of what was decoded.
Great, thanks.
But now I wonder, what can we do with this representation.
I guess set-buffer-multibyte will convert it to the intended chars, but
that bugs the question "why bother deciding into the unibyte buffer and
call set-buffer-multibyte afterwards rather than do the reverse"?
Anything else we can do with it?
Stefan