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:
parent
0dd18191bc
commit
9c02ede07e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue