Closed
Description
Feature or enhancement
CSV writer and reader allow to configure parameters of the CSV dialect. They check for some incompatible combination, for example quotechar must be set if quoting enabled. But it is still possible to specify values that produce ambiguous output which cannot be parsed neither by the CSV reader not by any other CSV parser. For example if any two of delimiter, quotechar or escapechar match. The error can be only noticed when try to read the CSV file, and it can simply produce wrong result instead of failing.
I propose to add more validation checks in addition to existing checks in the Dialect constructor.
Linked PRs
Metadata
Metadata
Assignees
Projects
Status
Done