Show
Ignore:
Timestamp:
04/20/12 11:23:41 (13 months ago)
Author:
miyagawa
Message:

Avoid use of an undocumented charnames API
Fixes https://rt.cpan.org/Public/Bug/Display.html?id=76373

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Encode-JP-Mobile/trunk/lib/Encode/JP/Mobile/Charnames.pm

    r6648 r39136  
    22use strict; 
    33use warnings; 
    4 use charnames (); 
    54use bytes     (); 
    65use File::ShareDir 'dist_file'; 
     
    1413 
    1514my $name2unicode; 
     15 
     16{ 
     17    use charnames ':full'; 
     18    BEGIN { *_def_translator = $^H{charnames} } 
     19} 
     20 
    1621 
    1722sub import { 
     
    6873    } 
    6974    else { 
    70         return charnames::charnames($name); 
     75        return _def_translator($name); 
    7176    } 
    7277} 
     
    7580sub _bytes_translator { 
    7681    my $name = shift; 
    77     return charnames::charnames($name); 
     82    return _def_translator($name); 
    7883} 
    7984