Massimiliano Gubinelli <[email protected]> writes:
> While trying some alternative solutions I noticed the following: the
> function scm_to_latin1_stringn calls out to scm_to_stringn with an
> argument NULL for the encoding:
>
> result = scm_to_stringn (str, lenp, NULL,
> SCM_FAILED_CONVERSION_ERROR);
>
> this causes an error in scm_to_stringn since it contains the check:
>
> (c_strcasecmp (encoding, "UTF-8") == 0)
>
> and c_strcasecmp does not check for null pointers. Is this a bug?
Yes, it is. I'll fix it soon, thanks.
Mark