Buffered custom binary input ports correctly handle partial read requests.
authorLudovic Courtès <ludo@gnu.org>
Tue, 21 Jan 2014 22:39:30 +0000 (23:39 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 21 Jan 2014 22:39:53 +0000 (23:39 +0100)
commit45a28515c13348dfd18e53038ad63dd091a5a3c1
tree8a41b122f1c34088b817890030d80301048affe6
parenta5cbbaa66a2491453db0edff9b0cb592a98f61bf
Buffered custom binary input ports correctly handle partial read requests.

* libguile/r6rs-ports.c (cbip_fill_input): Always initialize 'read_pos'
  when BUFFERED.
* test-suite/tests/r6rs-ports.test ("7.2.7 Input Ports")["custom binary
  input port buffered partial reads"]: New test.
libguile/r6rs-ports.c
test-suite/tests/r6rs-ports.test