In order to write binary data to a file on windows the 'wb' mode must be
used. The default flat file cache opens all files in text mode. Regrettable
text mode on windows translates the file corrupting things.
The same problems hold true for reading files as well.
The solution is to use the 'b' modes when doing file io. These modes have
no effect on other platforms (AFAIK)
Original issue reported on code.google.com by n...@longsincefaded.com on 6 Sep 2008 at 6:25
Original issue reported on code.google.com by
n...@longsincefaded.com
on 6 Sep 2008 at 6:25