This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:15MarkIngramUKsetrecipients: + MarkIngramUK, amaury.forgeotdarc, pitrou
2014-12-03 20:57:15MarkIngramUKsetmessageid: <1417640235.1.0.0763212335833.issue22982@psf.upfronthosting.co.za>
2014-12-03 20:57:15MarkIngramUKlinkissue22982 messages
2014-12-03 20:57:14MarkIngramUKcreate