Calling port-eof? at eof empties bytevector input ports
Bug #433574 reported by
Gwen Weinholt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Medium
|
Abdulaziz Ghuloum |
Bug Description
Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1857, build 2009-09-13)
Copyright (c) 2006-2009 Abdulaziz Ghuloum
> (define p (open-bytevecto
> (port-eof? p)
#f
> (get-u8 p)
42
> (set-port-position! p 0)
> (get-u8 p)
42
> (port-eof? p)
#t
> (set-port-position! p 0)
> (get-u8 p)
#!eof
>
The last call to get-u8 should also return 42, but it seems the port's data was obliterated by the last call to port-eof?.
Related branches
To post a comment you must log in.
Fixed in 1857. Thanks.