New submission from Bob Cannon <b...@neqn.net>: I used csv.writer to open a file for writing with comma as separator and dialect='excel'. I used writerow to write each row into the file. When I execute under linux, each line is terminated by '\r\n'. When I execute under windows, each line is terminated by '\r\r\n'. Thus, under MS Windows, when I read the csv file, there is a blank line between each significant line. I have dropped cvs.writer and now build each line manually and terminate it with '\n'. When the line is written in windows, it is terminated by '\r\n'. That's what should happen.
As I see it, writerow with dialect='excel' should only terminate a line with '\n'. Windows will automatically place a '\r' in front of the '\n'. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7198> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com