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



--- Comment #6 from Petr Pisar <ppi...@redhat.com> ---
Splitting on spaces and then concatenating is problematic. ASCI SPACE QUOTED
sequence and QUOTED SPACE QUOTED sequence has different rules for ignoring the
SPACE in between.

The Encode::MIME::Header was broken because of this and the 2.83 fixed it
finally. The resolution is that Encode::MIME::Header will always encode whole
header value as one chunk. If an application wants to encode headers with
e-mail addresses (e.g. To:), it must do the segmentation by itself and pass for
encoding only the interested parts. See
<https://rt.cpan.org/Public/Bug/Display.html?id=111853> and a fix for a broken
Encode::MIME::Header user <https://github.com/theory/svn-notify/pull/15>.

I don't know yet what to do in Fedora 23. Maybe I will applyr you patch to
restore older behavior in the expense that the encoding will be broken in some
cases.

But Fedora >= 24 will include the 2.83 version that does not do the
segmentation and the one who must be fixed there will be the applications.

I'm sorry upgrading the perl-Encode in Fedora 23 caused problems to you, I will
try to restore the old behavior thankfully to your patch.

Please talk to Encode developers in
<https://rt.cpan.org/Public/Bug/Display.html?id=111853>. They are experts in
this area and I believe they can explain the Encode design better than me and
can help you with developing the best fix for you applications.

-- 
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