emacs-devel
[Top][All Lists]
Advanced

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

Re: Some dynamic module questions


From: Philipp Stephani
Subject: Re: Some dynamic module questions
Date: Sun, 6 Dec 2020 18:04:27 +0100

Am Do., 3. Dez. 2020 um 16:13 Uhr schrieb Stefan Monnier
<monnier@iro.umontreal.ca>:
>
> > I agree that there should be a copy_unibyte_string_contents as well.
>
> An alternative would be to have a function like `copy_string_contents`
> which either returns bytes or a utf-8-encoded sequence of chars
> depending on whether the string was unibyte or not, and where it
> additionally returns an indication of which was the case.
>

Yes, that would be a viable alternative. (It would need a different
name, though, "copy_string_contents" is already taken.)



reply via email to

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