Subject: | Suspected bug |
Date: | Tue, 17 Feb 2009 18:11:28 -0700 |
To: | bug-Text-CSV_XS [...] rt.cpan.org |
From: | matt hilliard <m2 [...] strathcom.com> |
Hi.
First, thanks for the awesome module. We get a lot of garbage CSV at my
business and this module has saved us a lot of time, pulling data over
the last year.
I think I've hit a bug which is really easy to recreate:
my $csv = Text::CSV_XS->new(
{
'allow_whitespace' => 0,
'allow_loose_quotes' => 1,
'allow_loose_escape' => 1,
'quote_char' => '"',
'escape_char' => "\\",
'binary' => 1,
'eol' => $/
}
);
returns undef for $csv.
The OS is 6.2-RELEASE
The perl is v5.8.8 built for i386-freebsd-64int
The Text::CSV_XS is 0.60 (but behaviour was first observed with 0.51)
If there's a caveat, please let me know what it is so I can work around
the issue--this module has seen a lot of use but this is the first time
we've used 'allow_loose_escape' (our latest data provider is flippant
about escaping both single (') and double quotes (") inside a
double-quoted string so I suspect that's the culprit).
Best,
Matt