Re: "readline()" omitted '\r' in win32 for dos format text file

2004-12-02 Thread Peter Otten
Newgene wrote: > I have python2.3 installed on win2k. I noticed that when I open a > dos format text file (eol is '\r\n'), readline() always returns a line > ending with '\n' only, not '\r\n'. While I read the same file on unix, > it returns a line ending with '\r\n' correctly. > This makes me dif

"readline()" omitted '\r' in win32 for dos format text file

2004-12-02 Thread Newgene
Hi, group, I have python2.3 installed on win2k. I noticed that when I open a dos format text file (eol is '\r\n'), readline() always returns a line ending with '\n' only, not '\r\n'. While I read the same file on unix, it returns a line ending with '\r\n' correctly. This makes me difficult to deter