emacs-devel
[Top][All Lists]
Advanced

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

Re: Towards a cleaner build: arc-mode


From: Lars Ingebrigtsen
Subject: Re: Towards a cleaner build: arc-mode
Date: Sat, 18 May 2019 10:02:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> I think using this instead of string-as-unibyte should be OK:
>
>   (if (multibyte-string-p str)
>       (setq str (encode-coding-string str 'utf-8-emacs-unix)))

I've now made this change.

> What string-as-unibyte does is it makes a unibyte string with the same
> bytes as the internal representation of STR, except for raw bytes,
> which it converts to their external single-byte form.  Encoding with
> utf-8-emacs does the same.

Ah, I see.

-- 
(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]