https://bugzilla.redhat.com/show_bug.cgi?id=1305061



--- Comment #5 from Sjoerd Mullender <sjo...@acm.org> ---
Created attachment 1144849
  --> https://bugzilla.redhat.com/attachment.cgi?id=1144849&action=edit
possible patch to fix the problem

Here is a patch that I hope fixes the problem.  I haven't tried it out for
real, but the reported failure when I run "make test" looks like it does the
right thing.

What the code did before I intervened is to take the whole header value (i.e.
everything after the first colon) and encode it in its entirety as UTF-8 quoted
printable.  What I did instead is to take that complete value, split it on
white space, and for each chunk check whether it is pure ASCII (range ! to ~)
and if so, pass it unchanged.  Otherwise use the old code to encode the piece. 
Then at the end, join all the pieces (encoded and unchanged) with a space
between them.

A proper Perl programmer might want to take a look whether this is any good.

The code is based on the patched source from perl-Encode-2.80-4.fc23.src.rpm
(i.e., I ran rpmbuild -bp).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
http://lists.fedoraproject.org/admin/lists/perl-devel@lists.fedoraproject.org

Reply via email to