1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

string->utf8 implementation uses scm_from_utf8_stringn

* libguile/bytevectors.c (UTF_TO_STRING): Use scm_from_utf8_stringn.
This commit is contained in:
Andy Wingo 2013-01-15 15:07:15 +01:00
parent b39685c6da
commit 686df5162d

View file

@ -2028,8 +2028,7 @@ SCM_DEFINE (scm_string_to_utf32, "string->utf32",
scm_list_1 (utf), err); \
else \
{ \
str = scm_from_stringn (c_str, c_strlen, "UTF-8", \
SCM_FAILED_CONVERSION_ERROR); \
str = scm_from_utf8_stringn (c_str, c_strlen); \
free (c_str); \
} \
return (str);