--- On Sun, 18/1/09, Luke Kenneth Casson Leighton lkcl@lkcl.net wrote:
the regression test test_file.py has succeeded for years under proprietary native win32 platforms using the proprietary msvc compiler to build python.exe and python2N.dll for win32 platforms.
this particular test is therefore about testing and ensuring that \r\n handling SPECIFICALLY in O_TEXT mode is correct.
it has nothing to do with O_BINARY mode.
I already wrote that the default translation behavior (if not explicitly specified) is both compiler and runtime dependent. The fact that msvc-compiled python working in native win32 is rather different from mingw-compiled python working in wine, isn't it? It differs both in the compiler used and the runtime used.
From my experience if my memory serves (in the above bug report), Borland's compiler by-default generate code which is asymetrical - the reading code won't read what the writing code writes, in either windows or wine or both; that was very surprising to me.