; * src/emacs-module.c (module_make_string): Add another FIXME
This commit is contained in:
parent
b9e17e2dc6
commit
53777093c1
1 changed files with 2 additions and 0 deletions
|
|
@ -575,6 +575,8 @@ module_make_string (emacs_env *env, const char *str, ptrdiff_t length)
|
|||
MODULE_FUNCTION_BEGIN (module_nil);
|
||||
if (! (0 <= length && length <= STRING_BYTES_BOUND))
|
||||
xsignal0 (Qoverflow_error);
|
||||
/* FIXME: AUTO_STRING_WITH_LEN requires STR to be null-terminated,
|
||||
but we shouldn’t require that. */
|
||||
AUTO_STRING_WITH_LEN (lstr, str, length);
|
||||
return lisp_to_value (env,
|
||||
code_convert_string_norecord (lstr, Qutf_8, false));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue