Bug#787513: perl: small failure in RFC2047 eMail header encoding
Niko Tyni
ntyni at debian.org
Tue Jun 2 12:27:53 UTC 2015
On Tue, Jun 02, 2015 at 02:04:57PM +0200, Thorsten Glaser wrote:
> Package: perl
> Version: 5.20.2-6
> Severity: normal
> printf '%s' "[service-Aufgaben S&W-Team][#19415] VM''s aufsetzen mit unterschiedlichen" | \
> perl -C7 -0777 -Mutf8 -MEncode -e "print encode('MIME-Q', 'Subject: ' . <>);"
> Subject: [service-Aufgaben S&W-Team][#19415] VM''
> s aufsetzen mit unterschiedlichen
Thanks, looks buggy to me too. Interestingly decoding the output with
MIME-Q seems to have the same bug so it roundtrips correctly.
You might want to run your test suite on the MIME-EncWords implementation too,
available in the libmime-encwords-perl package. It seems to get at least this one right.
% printf '%s' "[service-Aufgaben S&W-Team][#19415] VM''s aufsetzen mit unterschiedlichen" | \
perl -C7 -0777 -MEncode::MIME::EncWords -Mutf8 -MEncode -e "print encode('MIME-EncWords-Q', 'Subject: ' . <>);"
Subject: [service-Aufgaben S&W-Team][#19415] VM''s aufsetzen mit
unterschiedlichen
--
Niko Tyni ntyni at debian.org
More information about the Perl-maintainers
mailing list