Closed GoogleCodeExporter closed 9 years ago
in bufio.b, in the failing case for sys->seek(), we can perhaps just not touch
b.filpos at all (or perhaps only set b.bufpos to b.filpos), and return error.
the
filpos should be correct when seek is called.
Original comment by mechiel@ueber.net
on 28 Jul 2009 at 9:34
i've gone for the second suggestion.
the file pointer will be unchanged on either an Enegoff or request to seek on a
stream.
index and size are now zero, so bufpos should show that buf[0] is at filpos.
i think that's right, and changing the test program to show sys->seek(b.fd, big
0, 1),
shows that in that particular case the bufio state is the same as the system's
which seems better than the original behaviour.
Original comment by Charles....@gmail.com
on 28 Jul 2009 at 4:59
Original issue reported on code.google.com by
mechiel@ueber.net
on 28 Jul 2009 at 9:21Attachments: