Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 107775
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: Mark.Martinec [...] ijs.si
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.78
Fixed in: (no value)



Subject: Inserts an empty line in an encoded header field
Encode::MIME::Header inserts an empty line in an encoded header field, which is illegal as it terminates a header section. Using Encode 2.78: $ perl -e 'use Encode; use utf8; printf("Subject: %s\n", encode("MIME-B", "report\n\tL_TEST_REPORT_ENCODING En-tête contient caractères\n\tend-report"))' ...produces: Subject: report =?UTF-8?B?CUxfVEVTVF9SRVBPUlRfRU5DT0RJTkcgRW4tdMOqdGUgY29udGllbnQgY2FyYWM=?= =?UTF-8?B?dMOocmVz?= end-report
Thank you. Fixed in the github HEAD: https://github.com/dankogai/p5-encode/commit/2319dac0c078d05babd4261e1fdd25dfa3d98cf7 Dan the Maintainer Thereof On Wed Oct 14 11:24:17 2015, Mark.Martinec@ijs.si wrote: Show quoted text
> Encode::MIME::Header inserts an empty line in an encoded header > field, which is illegal as it terminates a header section. > Using Encode 2.78: > > $ perl -e 'use Encode; use utf8; printf("Subject: %s\n", encode("MIME- > B", > "report\n\tL_TEST_REPORT_ENCODING En-tête contient caractères\n\tend- > report"))' > > ...produces: > > > Subject: report > > =?UTF- > 8?B?CUxfVEVTVF9SRVBPUlRfRU5DT0RJTkcgRW4tdMOqdGUgY29udGllbnQgY2FyYWM=?= > =?UTF-8?B?dMOocmVz?= > end-report