Message232092
It's more than a limitation, because if I call `file.seek(0, io.SEEK_END)` then the encoder is still reset, and will still write the BOM, even at the end of the file.
This also means that it's impossible to seek in a text file that you want to append to. I've had to work around this by opening the file as binary, manually writing the BOM, and writing the strings as encoded bytes. |
|
Date |
User |
Action |
Args |
2014-12-03 20:57:15 | MarkIngramUK | set | recipients:
+ MarkIngramUK, amaury.forgeotdarc, pitrou |
2014-12-03 20:57:15 | MarkIngramUK | set | messageid: <1417640235.1.0.0763212335833.issue22982@psf.upfronthosting.co.za> |
2014-12-03 20:57:15 | MarkIngramUK | link | issue22982 messages |
2014-12-03 20:57:14 | MarkIngramUK | create | |
|