Skip Menu |

This queue is for tickets about the Text-CSV-Simple CPAN distribution.

Report information
The Basics
Id: 116627
Status: open
Priority: 0/
Queue: Text-CSV-Simple

People
Owner: Nobody in particular
Requestors: EDAVIS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.00
Fixed in: (no value)



Subject: Line endings
If reading a Windows-format CSV file on Unix, that is, one with \r\n line endings, Text::CSV::Simple fails on each line. It should instead cope with either \r\n or \n line endings.
On Mon Aug 01 09:16:35 2016, EDAVIS wrote: Show quoted text
> If reading a Windows-format CSV file on Unix, that is, one with \r\n > line endings, Text::CSV::Simple fails on each line. It should instead > cope with either \r\n or \n line endings.
Text::CSV_XS takes care of handling line endings, so any bug you are seeing there is likely best reported over there. It should handline "\r\n" without any issues. If you are still seeing otherwise, you can specify the line-ending by passing 'eol => "\r\n"' to the constructor.