Antoine Pitrou added the comment: As stated in the codecs.open() docstring: """Files are always opened in binary mode, even if no binary mode was specified. This is done to avoid data loss due to encodings using 8-bit values""". This certainly means you have to insert "\r\n" yourself (instead of just "\n") if you want the file contents to respect the end-of-line convention under Windows...
---------- nosy: +pitrou __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2131> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com