This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zacktu
Recipients zacktu
Date 2009-10-24.22:08:39
SpamBayes Score 1.3231764e-05
Marked as misclassified No
Message-id <1256422121.38.0.499052368843.issue7198@psf.upfronthosting.co.za>
In-reply-to
Content
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'.
History
Date User Action Args
2009-10-24 22:08:41zacktusetrecipients: + zacktu
2009-10-24 22:08:41zacktusetmessageid: <1256422121.38.0.499052368843.issue7198@psf.upfronthosting.co.za>
2009-10-24 22:08:39zacktulinkissue7198 messages
2009-10-24 22:08:39zacktucreate