Welcome to the CHICKEN Scheme pasting service

bug with peek-u8 on bytevector ports added by phm on Sat Sep 12 07:33:40 2026

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) :
What's the result of `(and #t (or 'damn 'you 'spammers))'?