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 pitrou
Recipients ezio.melotti, pitrou, yang
Date 2009-10-19.18:44:53
SpamBayes Score 9.032382e-06
Marked as misclassified No
Message-id <1255977894.76.0.318331350299.issue7145@psf.upfronthosting.co.za>
In-reply-to
Content
The explanation is that sockets are not seekable, but the heuristic to
decide whether to write a BOM relies on tell() to return 0 on start-of-file.
If we unconditionally wrote a BOM, there would be a risk of duplicate
BOMs depending on the use case, which is more annoying than lacking a
BOM at the beginning.
History
Date User Action Args
2009-10-19 18:44:54pitrousetrecipients: + pitrou, ezio.melotti, yang
2009-10-19 18:44:54pitrousetmessageid: <1255977894.76.0.318331350299.issue7145@psf.upfronthosting.co.za>
2009-10-19 18:44:53pitroulinkissue7145 messages
2009-10-19 18:44:53pitroucreate