[issue12512] codecs: StreamWriter issues with stateful codecs after a seek or with append mode

2017-06-27 Thread STINNER Victor

STINNER Victor added the comment:

Sorry, I just lost track of this issue and so will just close it.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12512] codecs: StreamWriter issues with stateful codecs after a seek or with append mode

2011-07-07 Thread STINNER Victor

STINNER Victor  added the comment:

There is a similar bug for append mode:

import codecs
_open = codecs.open
#_open = open
filename = "test"
with _open(filename, 'w', encoding='utf_16') as f:
f.write('abc')
with _open(filename, 'a', encoding='utf_16') as f:
f.write('def')
with _open(filename, 'r', encoding='utf_16') as f:
content = f.read()
assert content == 'abcdef', ascii(content)

This bug has also been fixed by the issue #5006 in the io module.

--
title: codecs: StreamWriter issue with stateful codecs after a seek -> codecs: 
StreamWriter issues with stateful codecs after a seek or with append mode

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com