emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-26 8f18d12: Improve documentation of decoding into a unibyte b


From: Eli Zaretskii
Subject: Re: emacs-26 8f18d12: Improve documentation of decoding into a unibyte buffer
Date: Mon, 27 May 2019 19:51:18 +0300

> From: Stefan Monnier <address@hidden>
> Date: Mon, 27 May 2019 09:32:11 -0400
> 
> encoding `str` with any coding system like raw-text or
> emacs-internal doesn't seem to make much sense.

For a multibyte string that was encoded already, encoding by
utf-8-emacs-unix is IMO the _only_ thing that makes sense.  That's how
you convert raw bytes in their internal representation to the
single-byte external representation you want to see in the output.

Also note that encoded-string-description supports codepoints outside
the Unicode space, and utf-8-emacs-unix is the only sane way to
produce the overlong UTF-8 sequences in those cases.



reply via email to

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