Fix a faulty alias.
Jarkko Hietaniemi [Sun, 29 Jun 2003 15:49:52 +0000 (15:49 +0000)]
p4raw-id: //depot/perl@19885

ext/Encode/lib/Encode/Alias.pm

index d684ced..70b3dd8 100644 (file)
@@ -204,7 +204,7 @@ sub init_aliases
        # CP936 doesn't have vendor-addon for GBK, so they're identical.
        define_alias( qr/^gbk$/i => '"cp936"');
        # This fixes gb2312 vs. euc-cn confusion, practically
-       define_alias( qr/\bGB[-_ ]?2312(?:\D.*$|$)/i => '"euc-cn"' );
+       define_alias( qr/\bGB[-_ ]?2312(?!-?raw)/i => '"euc-cn"' );
        # for Encode::JP
        define_alias( qr/\bjis$/i            => '"7bit-jis"' );
        define_alias( qr/\beuc.*jp$/i        => '"euc-jp"' );