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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 314
Download (untitled) / with headers
text/plain 314b
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
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Content-Disposition: inline
Charset: utf8
Message-Id: <rt-3.6.HEAD-8605-1219061819-294.38558-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 111
Download (untitled) / with headers
text/plain 111b
Hey, I was wrong. It isn't busted to do this, it's in an RFC. http://www.faqs.org/rfcs/rfc1642.html -- rjbs
MIME-Version: 1.0
In-Reply-To: <rt-3.6.HEAD-8605-1219061819-294.38558-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
References: <rt-3.6.HEAD-8605-1219061819-294.38558-0-0 [...] rt.cpan.org>
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-29719-1232576922-572.38558-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 630
Download (untitled) / with headers
text/plain 630b
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.