It is possible for a multibyte string to have NBYTES = NCHARS.
The clean fix is for the args to allocate_string_data to indicate
explicitly whether the string is unibyte or multibyte.

This could be done with another argument, or by specifying -1
for NBYTES when the string is unibyte.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to