Apparently we decided not to land this in the 2.0 series (at least looking at the code, the '.replace()' is not present even in 2.0.3)
I believe we had a different fix for 'bzr commit -F' which was that we open the file in text mode, rather than in binary mode. However, if you are on Linux, text mode reads \r\n without changing them. (So writing DOS mode lines on linux will try to add them as DOS lines.)
Apparently we decided not to land this in the 2.0 series (at least looking at the code, the '.replace()' is not present even in 2.0.3)
I believe we had a different fix for 'bzr commit -F' which was that we open the file in text mode, rather than in binary mode. However, if you are on Linux, text mode reads \r\n without changing them. (So writing DOS mode lines on linux will try to add them as DOS lines.)