"Andy Wingo" <wi...@pobox.com> skribis:

>     fix string->bytevector for utf-8 and non-error conversion strategies
>     
>     * module/ice-9/iconv.scm (call-with-encoded-output-string):
>       (string->bytevector, bytevector->string): Only call string->utf8 and
>       utf8->string if the conversion strategy is `error'.

string->bytevector cannot fail when the encoding is UTF-8.

As for bytevector->string, you should compare against
(%default-port-conversion-strategy) rather than 'error, I think.

Would be nice to have tests for these corner cases.

Ludo’.

Reply via email to