Message94250
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. |
|
Date |
User |
Action |
Args |
2009-10-19 18:44:54 | pitrou | set | recipients:
+ pitrou, ezio.melotti, yang |
2009-10-19 18:44:54 | pitrou | set | messageid: <1255977894.76.0.318331350299.issue7145@psf.upfronthosting.co.za> |
2009-10-19 18:44:53 | pitrou | link | issue7145 messages |
2009-10-19 18:44:53 | pitrou | create | |
|