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: Stefan Monnier
Subject: Re: emacs-26 8f18d12: Improve documentation of decoding into a unibyte buffer
Date: Tue, 28 May 2019 07:55:40 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> and according to my quick investigation, all callers pass a string
>> that's coming straight from encode-coding-string or
>> encode-coding-char,
>> so the argument should *always* be unibyte, AFAICT.
>> 
>> Hence according to my reading of the code, this call to
>> string-as-unibyte will always just return its argument unchanged.
> That's not entirely true, because encode-coding-char can return a multibyte
> string.

That's weird.  When would that happen?


        Stefan




reply via email to

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