[Top][All Lists]

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

Re: Towards a cleaner build

From: Lars Ingebrigtsen
Subject: Re: Towards a cleaner build
Date: Fri, 17 May 2019 05:32:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

In xselect--encode-string:
select.el:475:24:Warning: ‘string-make-unibyte’ is an obsolete function (as of
    26.1); use ‘encode-coding-string’.

This is the code:

           ((eq type 'C_STRING)
            (setq str (string-make-unibyte str)))

(string-make-unibyte "á☪foo")
=> "\341*foo"

I'm guessing the point here is to make an 8-bit string that is somewhat
congruent with the (possibly) multibyte string that we have here?  Do we
have a library function (or a coding system) that does the same thing?

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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