Hello!
"Michael Gran" <
spk121@...> writes:
> commit 3a5bc4fadac5b1574f081e7ecd3a043cbd395794
> Author: Michael Gran <
spk121@...>
> Date: Wed Oct 28 06:24:23 2009 -0700
>
> Modify bytevectors/string conversions to allow wide strings
>
> The bytevector to string conversion functions were accomplished
> by converting via locale strings. This did not allow conversions
> of wide strings in an 8-bit locale. This is avoided by using knowledge
> of the storage format of the string.
>
> * libguile/bytevectors.c (STRING_TO_UTF, scm_string_to_utf8): modify
> string to bytevector conversion to use internal string information
> (UTF_TO_STRING, scm_utf8_to_string): modify bytevector to string
> conversion
Excellent, thanks! Could you add a couple of tests for this one (say,
one or two with a narrow string, and one or two with a wide string)?
Ludo’.