[New-bugs-announce] [issue5006] Duplicate UTF-16 BOM if a file is open in append mode
STINNER Victor
report at bugs.python.org
Tue Jan 20 00:24:35 CET 2009
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
Copy/paste of message79330 from the issue #4862:
--------------
>>> f = open('utf16.txt', 'w', encoding='utf-16')
>>> f.write('abc')
3
>>> f.close()
>>> f = open('utf16.txt', 'a', encoding='utf-16')
>>> f.write('def')
3
>>> f.close()
>>> open('utf16.txt', 'r', encoding='utf-16').read()
'abc\ufeffdef'
--------------
----------
messages: 80221
nosy: haypo
severity: normal
status: open
title: Duplicate UTF-16 BOM if a file is open in append mode
versions: Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5006>
_______________________________________
More information about the New-bugs-announce
mailing list