[issue6788] codecs.open on Win32 does not force binary mode

Amaury Forgeot d'Arc report at bugs.python.org
Mon Aug 31 08:33:37 CEST 2009


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

I think your test is invalid: it creates the file in "w" mode, so \n are 
written as two bytes \r\n on the disk.
codecs.open just reads them back.

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6788>
_______________________________________


More information about the Python-bugs-list mailing list