Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 97478 invoked from network); 1 Aug 2006 06:42:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Aug 2006 06:42:00 -0000 Received: (qmail 31009 invoked by uid 500); 1 Aug 2006 06:41:58 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 30920 invoked by uid 500); 1 Aug 2006 06:41:58 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 30909 invoked by uid 99); 1 Aug 2006 06:41:58 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 23:41:58 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 23:41:57 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6D82D41000E for ; Tue, 1 Aug 2006 06:39:26 +0000 (GMT) Message-ID: <22004152.1154414366443.JavaMail.jira@brutus> Date: Mon, 31 Jul 2006 23:39:26 -0700 (PDT) From: "Henri Yandell (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Commented: (SANDBOX-161) CSVPrinter#escapeAndQuote(String) doesn't adhere to CSV standard In-Reply-To: <24639960.1154129481333.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/SANDBOX-161?page=comments#action_12424761 ] Henri Yandell commented on SANDBOX-161: --------------------------------------- "" is the one I've always seen too. http://tools.ietf.org/html/rfc4180 has that as well (from the wikipedia link). > CSVPrinter#escapeAndQuote(String) doesn't adhere to CSV standard > ---------------------------------------------------------------- > > Key: SANDBOX-161 > URL: http://issues.apache.org/jira/browse/SANDBOX-161 > Project: Commons Sandbox > Issue Type: Bug > Components: CSV > Affects Versions: Nightly Builds > Reporter: Daniel Gredler > > 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org