[issue5006] Duplicate UTF-16 BOM if a file is open in append mode
Antoine Pitrou
report at bugs.python.org
Sat Mar 14 01:50:00 CET 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
One possible solution would be to call tell() in the TextIOWrapper
constructor, and then decoder.setstate((b"", 0)) if the current pos is >0.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5006>
_______________________________________
More information about the Python-bugs-list
mailing list