On Mon 01 Apr 2013 03:32, Mark H Weaver <m...@netris.org> writes: > This patch changes it to simply fill the read buffer (if empty) and then > copy the contents of the read/putback buffers into a bytevector that is > never resized.
LGTM; but the docs are a little confusing: -- Scheme Procedure: get-bytevector-some port -- C Function: scm_get_bytevector_some (port) Read from PORT, blocking as necessary, until data are available or and end-of-file is reached. Return either a new bytevector containing the data read or the end-of-file object. The wording is from the R6RS but it seems to imply that we get all data until the read would block or EOF is reached. That's not the case, and it shouldn't be the case. Andy -- http://wingolog.org/