[
https://issues.apache.org/jira/browse/CODEC-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13222203#comment-13222203
]
Thomas Neidhart commented on CODEC-121:
---------------------------------------
Hi Gary,
the latest commit to codec was 1296456, and the patch was created from 1296812
(using svn diff files > patch).
When I apply the patch myself (patch -p0 < patch), I get the following message:
{noformat}
patching file
src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java
Hunk #1 succeeded at 42 with fuzz 1.
patching file
src/test/java/org/apache/commons/codec/net/QuotedPrintableCodecTest.java
{noformat}
The result is ok. The revision number will continue to increase even if there
are no commits to codec, or am I doing something wrong?
> 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
> Environment: I tested on Windows 7.
> Reporter: Java John
> Labels: codec, decode, quoted-printable
> Fix For: 1.x
>
> Attachments: CODEC-121.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