Kovid Goyal added the comment:

To answer part of my question, the reason the fseek()+fread() bug does not 
affect python 3.5.0 appears to be because it implements its own buffering and 
does not use fseek()/fread() at all. 

Sigh, I really hope the answer does not end up being that I have to 
re-implement fseek()/ftell()/fread()/fwrite() using lseek()/read()/write() on 
windows. Or I could wait and hope Microsoft fixes the bug :)

As a first step, to confirm that the bug is in the CRT, I'll have the gzip 
module record all reads/seeks/tells and then see if I can reproduce the bug in 
a plain C program.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25759>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to