[issue13190] ConfigParser uses wrong newline on Windows

Łukasz Langa report at bugs.python.org
Mon Jan 23 18:17:37 CET 2012


Łukasz Langa <lukasz at langa.pl> added the comment:

That is indeed the behaviour. Citing the tutorial: "Python on Windows makes a distinction between text and binary files; the end-of-line characters in text files are automatically altered slightly when data is read or written."

When you're opening the file in binary mode, \n characters are not altered. Opening a file that way specifies programmer intent and I don't think we should force os.linesep in that case.

----------
resolution:  -> works for me
stage:  -> committed/rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list