bug#22667: string->bytevector encoding error

2016-08-07 Thread Andy Wingo
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"

bug#22667: string->bytevector encoding error

2016-06-20 Thread Andy Wingo
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

bug#22667: string->bytevector encoding error

2016-03-03 Thread Mark H Weaver
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. >

bug#22667: string->bytevector encoding error

2016-02-14 Thread Josep Portella Florit
'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