emacs-devel
[Top][All Lists]
Advanced

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

Re: user-ptr as image :data


From: Evgeny Zajcev
Subject: Re: user-ptr as image :data
Date: Fri, 15 Mar 2019 23:28:52 +0300

> Hmm... indeed we don't have any direct way to create a unibyte string.
> Can you `M-x report-emacs-bug` to request this new feature?

will do
> AFAICT while the string needs to have a NUL byte after its end, > make_string should handle NUL bytes within the string, so the best > option until a new primitive is provided is probably: > 1- use make-string on your non-utf-8 binary data. > 2- call encode-coding-string on the result (with utf-8 coding system).
This works! very slow, but it works, I'll use this hack for now

thanks

--
lg

reply via email to

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