Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1C9C39156 for ; Mon, 19 Mar 2012 18:34:00 +0000 (UTC) Received: (qmail 54107 invoked by uid 500); 19 Mar 2012 18:34:00 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 53920 invoked by uid 500); 19 Mar 2012 18:34:00 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 53908 invoked by uid 99); 19 Mar 2012 18:34:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 18:34:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 18:33:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 90C2C293C6 for ; Mon, 19 Mar 2012 18:33:38 +0000 (UTC) Date: Mon, 19 Mar 2012 18:33:38 +0000 (UTC) From: "Thomas Neidhart (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <883795967.32261.1332182018594.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <200366777.74980.1303426625907.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CODEC-121) QuotedPrintableCodec does not support soft line break per the 'quoted-printable' example on Wikipedia MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CODEC-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Neidhart updated CODEC-121: ---------------------------------- Fix Version/s: (was: 1.7) 2.0 > QuotedPrintableCodec does not support soft line break per the 'quoted-printable' example on Wikipedia > ----------------------------------------------------------------------------------------------------- > > Key: CODEC-121 > URL: https://issues.apache.org/jira/browse/CODEC-121 > Project: Commons Codec > Issue Type: Bug > Affects Versions: 1.5, 1.6 > Environment: I tested on Windows 7. > Reporter: Java John > Labels: codec, decode, quoted-printable > Fix For: 2.0 > > Attachments: CODEC-121.patch, CODEC-121_v2.patch > > > Writing a unit test I discovered that the example Wikipedia uses for quoted-printable data does not decode but instead throws an exception. > Their example is here: http://en.wikipedia.org/wiki/Quoted-printable#Example > test: > String qpdata = "If you believe that truth=3Dbeauty, then surely=20=\r\n" + > "mathematics is the most beautiful branch of philosophy."; > String expected = "If you believe that truth=beauty, then surely " + > "mathematics is the most beautiful branch of philosophy."; > assertEquals( expected, new QuotedPrintableCodec().decode(qpdata) ); > I suppose I could fix if you like but currently I'm not a registered developer. -- 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