CSV bug?

Nahi aka NAKAMURA, Hiroshi [mailto:nahi@keynauts.com] humbly replied:

0% cat pena.csv
1;SMTP:“local;part”@test.com;x400:blahblahblah;smtp:test@test.com
2;SMTP:“local;part2”@test.com;x400:blahblahblah;smtp:test2@test.com

0% ruby -rcsv -e ‘CSV.parse(“pena.csv”, ?:wink: { |row| p
row.to_a }’ [“1”, “SMTP:"local”, “part"@test.com”,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
is it possible (in the future perhaps) to join this into
one?

Basically, what I’m asking is that escaped delimited characters (in this
case “;” in “local;part”) should not be parse as delimiter.

Regards,
// NaHi

kind regards -botp

Hi,

Peña, Botp wrote:

0% cat pena.csv
1;SMTP:“local;part”@test.com;x400:blahblahblah;smtp:test@test.com
2;SMTP:“local;part2”@test.com;x400:blahblahblah;smtp:test2@test.com

0% ruby -rcsv -e ‘CSV.parse(“pena.csv”, ?:wink: { |row| p
row.to_a }’ [“1”, “SMTP:"local”, “part"@test.com”,

                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              is it possible (in the future perhaps) to join this into

one?

That is the point I wrote, too… Excel and OpenOffice parses like
above. So it will be an option if I can write such a (robust?) CSV
parser, not changing the current behavior. CSV::Robust.parse(“foo.csv”) ?

Regards,
// NaHi