[jira] [Commented] (CSV-56) Do not use exotic escape characters for sequences like \r or \n
[ https://issues.apache.org/jira/browse/CSV-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13877134#comment-13877134 ] Gary Gregory commented on CSV-56: - Should the CSVFormat throw an exception if you set special escapes as escapes? We can relax this later. That would help pause this issue to release 1.0. Do not use exotic escape characters for sequences like \r or \n --- Key: CSV-56 URL: https://issues.apache.org/jira/browse/CSV-56 Project: Commons CSV Issue Type: Improvement Components: Parser Reporter: Emmanuel Bourg Priority: Minor Fix For: 1.0 The parser is able to recognize escape sequences like \r and \n, and transform them automatically. But if the format is changed to use another escape character like !, the parser will also replace !n and !r, which is rather unusual. The replacement should be independent from the escape character defined in the format. This escape character should only be used to escape a delimiter, a quote or a line separator. -- This message was sent by Atlassian JIRA (v6.1.5#6160)
[jira] [Commented] (CSV-56) Do not use exotic escape characters for sequences like \r or \n
[ https://issues.apache.org/jira/browse/CSV-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13877283#comment-13877283 ] Emmanuel Bourg commented on CSV-56: --- Ok, sounds fine. Do not use exotic escape characters for sequences like \r or \n --- Key: CSV-56 URL: https://issues.apache.org/jira/browse/CSV-56 Project: Commons CSV Issue Type: Improvement Components: Parser Reporter: Emmanuel Bourg Priority: Minor Fix For: 1.0 The parser is able to recognize escape sequences like \r and \n, and transform them automatically. But if the format is changed to use another escape character like !, the parser will also replace !n and !r, which is rather unusual. The replacement should be independent from the escape character defined in the format. This escape character should only be used to escape a delimiter, a quote or a line separator. -- This message was sent by Atlassian JIRA (v6.1.5#6160)
[jira] [Commented] (CSV-56) Do not use exotic escape characters for sequences like \r or \n
[ https://issues.apache.org/jira/browse/CSV-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13227654#comment-13227654 ] Sebb commented on CSV-56: - I think there are two kinds of escaping here. Sequences such as \r and \n are used to encode characters that cannot easily be expressed in a string. This is different from the need to prevent meta-characters from being treated as such, as in regular expresssions where . is a meta-character and \. is a literal .. The Javadoc needs to be very clear on exactly what the escape character is used for. Do not use exotic escape characters for sequences like \r or \n --- Key: CSV-56 URL: https://issues.apache.org/jira/browse/CSV-56 Project: Commons CSV Issue Type: Improvement Components: Parser Reporter: Emmanuel Bourg Priority: Minor Fix For: 1.0 The parser is able to recognize escape sequences like \r and \n, and transform them automatically. But if the format is changed to use another escape character like !, the parser will also replace !n and !r, which is rather unusual. The replacement should be independent from the escape character defined in the format. This escape character should only be used to escape a delimiter, a quote or a line separator. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CSV-56) Do not use exotic escape characters for sequences like \r or \n
[ https://issues.apache.org/jira/browse/CSV-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13227660#comment-13227660 ] Emmanuel Bourg commented on CSV-56: --- I agree, I also think it should be possible to disable the transformation of \n sequences. People reading files with Windows paths should appreciate. Do not use exotic escape characters for sequences like \r or \n --- Key: CSV-56 URL: https://issues.apache.org/jira/browse/CSV-56 Project: Commons CSV Issue Type: Improvement Components: Parser Reporter: Emmanuel Bourg Priority: Minor Fix For: 1.0 The parser is able to recognize escape sequences like \r and \n, and transform them automatically. But if the format is changed to use another escape character like !, the parser will also replace !n and !r, which is rather unusual. The replacement should be independent from the escape character defined in the format. This escape character should only be used to escape a delimiter, a quote or a line separator. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira