Message232092
| Author |
MarkIngramUK |
| Recipients |
MarkIngramUK, amaury.forgeotdarc, pitrou |
| Date |
2014年12月03日.20:57:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1417640235.1.0.0763212335833.issue22982@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|