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

Empty record: unnecessary escaping with double quotes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2
    • None
    • None
    • 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

              Unassigned Unassigned
              filosofem Eldar Agalarov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: