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: Robert Pluim
Subject: Re: emacs-26 8f18d12: Improve documentation of decoding into a unibyte buffer
Date: Tue, 28 May 2019 08:21:04 +0200

>>>>> On Tue, 28 May 2019 07:17:35 +0300, Eli Zaretskii <address@hidden> said:

    >> I'm not sure where you read that I was arguing we shouldn't support
    >> this scenario.  I was just pointing out that utf-8-emacs-unix is not
    >> the
    >> only thing that makes sense: string-to-unibyte should work just as
    >> well
    >> (if not better).
    >> 
    >> 
    >> Stefan

    Eli> string-to-unibyte is also marked obsolete.  Robert was asking how to
    Eli> use encoding functions instead of the obsolete string-as-unibyte;
    Eli> advising to use yet another obsolete function makes little sense to
    Eli> me.

Plus calling string-to-unibyte on a multi-byte string will signal an
error.

(encode-coding-string str 'emacs-internal)

seems to be what I want, as Eli pointed out upthread.

Robert



reply via email to

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