This is an exported version of the JIRA issue tracker. Please use the Google Code site to open new tickets or report updates to these existing tickets. Feel free to contact the mailing list with any questions.

[GJC-33] CSV outputs with the wrong line endings on Windows
Created: Tue, 6 Jun 2006 17:36:50 -0700 (PDT)  Updated: Tue, 26 Feb 2008 03:14:46 -0800 (PST)

Status:Open
Project:Genjava
Component/s:gj-csv
Affects Version/s:csv-1.0
Fix Version/s:

Type:BugPriority: Major
Reporter:TrejkazAssignee:Henri Yandell
Resolution:Unresolved 
Environment:


 Description   
When outputting a CSV file on Windows, the resulting file has Unix-style (\n) line endings instead of Windows-style (\r\n) line endings.

In addition, CsvWriter.setBlockDelimiter() doesn't permit sending in a multi-character string, to override this behaviour.
Comment by bayard [ Tue, 26 Feb 2008 03:14:46 -0800 (PST) ]
Not as easy as it should be - the parser in CsvReader is char-based [ie: reads one char at a time] and would need work to get it to spot the \r\n when reading. Easy enough to change CsvWriter to output, but without a matching CsvReader I'm hesitant to do that.