Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-165

Empty record: unnecessary escaping with double quotes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Commons CSV with CSVFormat.RFC4180 writes empty 4-column records as
      "",,,
      instead of
      ,,,

      It puts double quotes for first column, and no any chars for rest columns.
      This behavior are not described in RFC specification. RFC spec. tells that only if column contains double quotes, CRLF and comma then it should be escaped by double quotes. But there are no point to escape with double quotes empty values.

      If i have, for example 5-column empty record then it should looks following:
      ,,,,
      (four commas)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                filosofem Eldar Agalarov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: