[Top][All Lists]

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

Re: [Emacs-diffs] emacs-26 8f18d12: Improve documentation of decoding in

From: Eli Zaretskii
Subject: Re: [Emacs-diffs] emacs-26 8f18d12: Improve documentation of decoding into a unibyte buffer
Date: Sat, 25 May 2019 22:59:02 +0300

> From: Stefan Monnier <address@hidden>
> Cc: address@hidden
> Date: Sat, 25 May 2019 15:41:46 -0400
> > +length of the decoded text.  If that buffer is a unibyte buffer
> > +(@pxref{Selecting a Representations}), the internal representation of
> > +the decoded text (@pxref{Text Representations}) is inserted into the
> > +buffer as individual bytes.
> If the decoded char is a byte between 128-255, is it inserted as
> a single byte or as the two-byte sequence used internally for those
> "eight-bit" chars?

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.

reply via email to

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