Closed vadmium closed 7 years ago
Do you know where the \r does come from? Does f.write("\n") also add a \r? I was not aware of any problems with this until know. Maybe something has changed in python3.
Ok. Just read the python3 docu for open
"When writing output to the stream, if newline is None, any '\n' characters written are translated to the system default line separator,"
I really wasn't aware of this changed behavior. In python2 it requires to set open(..., "U")
to get universal newlines. Thanks for finding this python2/3 error on windows.
You are right about the newline translation with Python 3. However a similar translation happens with Python 2, so this is not a Python 2 vs 3 thing, just a Windows vs Unix thing.
In Python 2, the w or wb mode is passed directly to
Demonstration of the trailing CRs confusing Quilt; it seems you have to pop more than one patch, with at least three patches applied: