Welcome to the CHICKEN Scheme pasting service

bug with peek-u8 on bytevector ports added by phm 14 hours ago

Tested on v6.0.0, Linux x86_64 (musl):

(import (scheme base))
(define port (open-input-bytevector #u8(1 2 3)))
(peek-u8 port) ; 0, should be 1
(read-u8 port) ; 1, is correct
(peek-u8 port) ; 0, should be 2

-- Peter McGoron

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which R5RS procedure returns `'(2 3)' when given `'(1 2 3)' as input?
Visually impaired? Let me spell it for you (wav file) download WAV