Show
Ignore:
Timestamp:
07/28/08 15:25:37 (5 months ago)
Author:
tomi-ru
Message:

MIME-系のencoding->mime_nameサポート

Location:
lang/perl/Encode-JP-Mobile/branches/mime
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Encode-JP-Mobile/branches/mime/lib/Encode/JP/Mobile.pm

    r16180 r16740  
    4949for (Encode->encodings('JP::Mobile')) { 
    5050    next if defined $Encode::MIME::Name::MIME_NAME_OF{$_}; 
    51     my $mime_name = $_ =~ /utf8/ ? 'UTF-8' 
    52                   : $_ =~ /sjis/ ? 'Shift_JIS' 
    53                   : $_ =~ /2022/ ? 'ISO-2022-JP' 
     51    my $mime_name = $_ =~ /utf8/i ? 'UTF-8' 
     52                  : $_ =~ /sjis/i ? 'Shift_JIS' 
     53                  : $_ =~ /2022/i ? 'ISO-2022-JP' 
    5454                  : undef; 
    5555    $Encode::MIME::Name::MIME_NAME_OF{$_} = $mime_name if $mime_name; 
  • lang/perl/Encode-JP-Mobile/branches/mime/t/mime_name.t

    r7001 r16740  
    99    x-utf8-softbank 
    1010    x-utf8-kddi 
     11    MIME-Header-JP-Mobile-SoftBank-UTF8 
    1112); 
    1213my @sjis_encodings = qw( 
     
    2324    x-sjis-kddi-auto-raw 
    2425    x-sjis-airh-raw 
     26    MIME-Header-JP-Mobile-DoCoMo-SJIS 
     27    MIME-Header-JP-Mobile-KDDI-SJIS 
     28    MIME-Header-JP-Mobile-SoftBank-SJIS 
     29    MIME-Header-JP-Mobile-Airedge-SJIS 
    2530); 
    2631my @jis_encodings = qw(