[Top][All Lists]

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

Re: Towards a cleaner build: hexl

From: Noam Postavsky
Subject: Re: Towards a cleaner build: hexl
Date: Fri, 17 May 2019 08:49:30 -0400

On Fri, 17 May 2019 at 08:45, Lars Ingebrigtsen <address@hidden> wrote:
> In hexl-insert-multibyte-char:
> hexl.el:881:29:Warning: ‘string-as-unibyte’ is an obsolete function (as of
>     26.1); use ‘encode-coding-string’.
> This is the code...
>            (let ((encoded (encode-coding-char ch coding))
>                  (internal (string-as-unibyte (char-to-string ch)))
>                  internal-hex)
>              ;; If encode-coding-char returns nil, it means our character
>              ;; cannot be safely encoded with buffer-file-coding-system.
>              ;; In that case, we offer to insert the internal representation
>              ;; of that character, byte by byte.
> And here we really, really want the internal byte representation of the
> multibyte string,

Shouldn't we use (encode-coding-char ch 'utf-8-emacs) instead?

reply via email to

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