Hi,
On Mon 20 Jun 2016 18:07, Andy Wingo writes:
> On Sun 14 Feb 2016 23:18, Josep Portella Florit 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"
On Sun 14 Feb 2016 23:18, Josep Portella Florit writes:
> 'string->bytevector' throws 'encoding-error' when the encoding is
> "UTF-16" and the length of the string is greater than 128. The same
> for the encoding "UTF-32" and a string of length greater than 64.
>
> Tested on Guile 2.0.11 and 2.1
Josep Portella Florit writes:
> 'string->bytevector' throws 'encoding-error' when the encoding is
> "UTF-16" and the length of the string is greater than 128. The same
> for the encoding "UTF-32" and a string of length greater than 64.
>
> Tested on Guile 2.0.11 and 2.1.2 with the same result.
>
'string->bytevector' throws 'encoding-error' when the encoding is
"UTF-16" and the length of the string is greater than 128. The same
for the encoding "UTF-32" and a string of length greater than 64.
Tested on Guile 2.0.11 and 2.1.2 with the same result.
How to reproduce:
(use-modules (ice-9 ic