austenpma / csvfix

Automatically exported from code.google.com/p/csvfix
MIT License
0 stars 0 forks source link

Delimiter contained within quotes should be ignored #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Create a sample file (test.csv) to parse containing the following:

    foo, "bar, baz", quux

2. Run: csvfix read_dsv -ibl -csv -smq -s ',' test.csv

What is the expected output? What do you see instead?

Expected output:

    foo, "bar, baz", quux

Current output:

    foo," ""bar"," baz""", quux

What version of the product are you using? On what operating system?

    Running directly from the repo on OSX and also tested on Ubuntu.

Please provide any additional information below.

    Just an FYI, using read_dsv to pass in a dynamic delimiter to standardise difference multiple delimited files. 

Original issue reported on code.google.com by tylersma...@gmail.com on 1 Dec 2011 at 2:08

GoogleCodeExporter commented 8 years ago
TYPO: standardise multiple delimited files

Original comment by tylersma...@gmail.com on 1 Dec 2011 at 2:11

GoogleCodeExporter commented 8 years ago
This is not a bug. DSV format (aka UNIX passwd file format) has no concept of 
quoting using double-quotes. That is a CSV feature.

Original comment by nbutterworth1953@gmail.com on 2 Dec 2011 at 12:24