ElektraInitiative / libelektra

Elektra serves as a universal and secure framework to access configuration settings in a global, hierarchical key database.
https://www.libelektra.org
BSD 3-Clause "New" or "Revised" License
208 stars 123 forks source link

csvstorage improvements #1045

Closed markus2330 closed 7 years ago

markus2330 commented 7 years ago

csvstorage could be enhanced with other features as described in https://tools.ietf.org/html/rfc4180

tom-wa commented 7 years ago
  1. If double-quotes are used to enclose fields, then a double-quote appearing inside a field must be escaped by preceding it with another double quote. For example:

    "aaa","b""bb","ccc"

how should happen in case of "aaa","b"bb","ccc" ? i'd say a warning is enough since i can parse it just fine, what do you think ?

markus2330 commented 7 years ago

In the long term we need a "strict" mode. But as our current main goal is to work with the files that are lying around in /etc, you are right: we should accept it with a warning.