commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eldar Agalarov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CSV-165) Empty record: unnecessary escaping with double quotes
Date Tue, 24 Nov 2015 14:05:11 GMT

     [ https://issues.apache.org/jira/browse/CSV-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eldar Agalarov updated CSV-165:
-------------------------------
    Affects Version/s: 1.2
          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)

  was:
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 quote. But there
are no point to escape with double quotes empty value.

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


> Empty record: unnecessary escaping with double quotes
> -----------------------------------------------------
>
>                 Key: CSV-165
>                 URL: https://issues.apache.org/jira/browse/CSV-165
>             Project: Commons CSV
>          Issue Type: Bug
>    Affects Versions: 1.2
>            Reporter: Eldar Agalarov
>            Priority: Minor
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message