Skip Menu |

This queue is for tickets about the Encode CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

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



Subject: please add unicode-1-1-utf-7 as alias for utf7
For some unknown reason, some busted mailers use unicode-1-1-utf-7 as an encoding for utf7. This makes many email-handlers die when they try to use Encode to decode the mime words in the headers. I'd rather not have to use Encode::Alias everywhere all the time. Could this be added as a global aliase? -- rjbs
Hey, I was wrong. It isn't busted to do this, it's in an RFC. http://www.faqs.org/rfcs/rfc1642.html -- rjbs
Added in 2.27. Thanks. --- lib/Encode/Alias.pm 2008/07/01 20:56:17 2.10 +++ lib/Encode/Alias.pm 2009/01/21 22:26:18 @@ -135,7 +135,7 @@ define_alias( qr/^(.*)$/ => '"\L$1"' ); # UTF/UCS stuff - define_alias( qr/^UTF-?7$/i => '"UTF-7"' ); + define_alias( qr/^(unicode-1-1-)?UTF-?7$/i => '"UTF-7"' ); define_alias( qr/^UCS-?2-?LE$/i => '"UCS-2LE"' ); define_alias( qr/^UCS-?2-?(BE)?$/i => '"UCS-2BE"', Dan the Encode Maintainer On Mon Aug 18 08:16:59 2008, RJBS wrote: Show quoted text
> Hey, I was wrong. It isn't busted to do this, it's in an RFC. > > http://www.faqs.org/rfcs/rfc1642.html