diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-10-20 03:46:49 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-10-20 03:46:49 (GMT) |
commit | e453989f2e6ea6d3a30c671f87313905d0c66e5e (patch) | |
tree | 1c0daa0ee8810a3a81ae18f670d55c354c897fb4 /INTBENCH | |
parent | 3bb42d9341964fdf094c89c9a64965bd18588476 (diff) | |
download | cpython-e453989f2e6ea6d3a30c671f87313905d0c66e5e.zip cpython-e453989f2e6ea6d3a30c671f87313905d0c66e5e.tar.gz cpython-e453989f2e6ea6d3a30c671f87313905d0c66e5e.tar.bz2 |
Fix PyTokenizer_FindEncoding() for OS X 10.4. Turns out that seeking to the
beginning of a file through a file pointer is not reflected when reading from a
file descriptor. Using both fflush() and fpurge() does not solve it. One must
use lseek() directly on the file descriptor to get the desired effect.
This might suggest that we standardize on either file pointers (FILE) or file
descriptors (int) for all C code used.
Diffstat (limited to 'INTBENCH')
0 files changed, 0 insertions, 0 deletions