Skip Menu |

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

Report information
The Basics
Id: 99774
Status: resolved
Priority: 0/
Queue: Text-CSV

People
Owner: Nobody in particular
Requestors: gkaczor [...] e-point.pl
Cc:
AdminCc:

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



Subject: incorrect parsing of simple CSV file
Date: Fri, 24 Oct 2014 12:48:33 +0200
To: bug-Text-CSV [...] rt.cpan.org
From: Grzegorz Kaczor <gkaczor [...] e-point.pl>
Hello I have Text::CSV version 1.32. I try to parse file with that contents: "data_quality_id";"language_version_id";"name" "0";"2";"0%" "10";"2";"33%" "20";"2";"66%" "30";"2";"100%" and this configuration: my $csv = Text::CSV->new ( { binary => 1, sep_char => ';', allow_whitespace => 1, quote_char => '"' } ) or die "Cannot use CSV: ".Text::CSV->error_diag (); but Text::CSV instead of finding language_version_id with value "2" in row with "0" in first column finds language_version_id with value "2;%" This is independent on setting of column types. Is there a workaround or an easy fix to this? Regards, Grzegorz
On Fri Oct 24 19:49:07 2014, gkaczor@e-point.pl wrote: Show quoted text
> Hello > > I have Text::CSV version 1.32. > > I try to parse file with that contents: > > "data_quality_id";"language_version_id";"name" > "0";"2";"0%" > "10";"2";"33%" > "20";"2";"66%" > "30";"2";"100%" > > and this configuration: > > my $csv = Text::CSV->new ( { binary => 1, sep_char => ';', allow_whitespace > => 1, quote_char => '"' } ) > or die "Cannot use CSV: ".Text::CSV->error_diag (); > > but Text::CSV instead of finding language_version_id with value "2" in row > with "0" in first column finds language_version_id with value "2;%" > > This is independent on setting of column types. > > Is there a workaround or an easy fix to this? > > Regards, > Grzegorz
This issue should have been fixed, probably since 1.33. Please reopen this if you still suffer from this issue. Thanks.