Subject: Re: bug#22667: string->bytevector encoding error

From: Andy Wingo <[email-masked]>
Date: Sun, 07 Aug 2016 23:25:29 +0200

Hi,

On Mon 20 Jun 2016 18:07, Andy Wingo <[email-masked]> writes:

> On Sun 14 Feb 2016 23:18, Josep Portella Florit <[email-masked]> writes:
>
>> (use-modules (ice-9 iconv))
>> ;; These expressions throw 'encoding-error':
>> (string->bytevector (make-string 129 #\A) "UTF-16")
>> (string->bytevector (make-string 65 #\A) "UTF-32")
>
> For what it's worth, this appears to be fixed in 2.1.3.  However we
> should fix 2.0 as well.

Fixed.  Thanks for the report, and thanks to Mark for diagnosing the
problem.

Andy.