[ 
https://issues.apache.org/jira/browse/SANDBOX-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988686#comment-12988686
 ] 

Jacopo Cappellato commented on SANDBOX-161:
-------------------------------------------

Sebb, I have added the test cases in rev. 1065519
Thanks for the reminder.

> CSVPrinter#escapeAndQuote(String) doesn't adhere to CSV standard
> ----------------------------------------------------------------
>
>                 Key: SANDBOX-161
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-161
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: CSV
>    Affects Versions: Nightly Builds
>            Reporter: Daniel Gredler
>             Fix For: CSV 1.0
>
>         Attachments: commons-csv-patch-standard-escaping.txt
>
>
> All the descriptions of the CSV format that I've seen state that:
> - Double quotes (") are escaped using two double quotes (""), rather than a 
> backslash (\").
> - Embedded line breaks are allowed and don't need to be escaped... just 
> enclose the field in double quotes.
> - Because backslashes are not used to escape double quotes or line breaks, 
> the backslashes themselves do not need to be escaped.
> CSVPrinter#escapeAndQuote(String) breaks these rules. Why?
> http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
> http://en.wikipedia.org/wiki/Comma-separated_values

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to