1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 14:30:34 +02:00

Fix bad-utf8-len bug.

* module/ice-9/ports.scm (bad-utf8-len): Fix bug.
This commit is contained in:
Andy Wingo 2016-05-10 15:37:11 +02:00
parent 0dd18191bc
commit 9c02ede07e

View file

@ -360,7 +360,7 @@ interpret its input and output."
(define (bad-utf8-len bv cur buffering first-byte)
(define (ref n)
(bytevector-u8-ref bv (+ cur 1)))
(bytevector-u8-ref bv (+ cur n)))
(cond
((< first-byte #x80) 0)
((<= #xc2 first-byte #xdf)