From b9531c19967f04908d6f8236ceb2296ad6358488 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sun, 29 Jun 2003 15:49:52 +0000 Subject: [PATCH] Fix a faulty alias. p4raw-id: //depot/perl@19885 --- ext/Encode/lib/Encode/Alias.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/Encode/lib/Encode/Alias.pm b/ext/Encode/lib/Encode/Alias.pm index d684ced..70b3dd8 100644 --- a/ext/Encode/lib/Encode/Alias.pm +++ b/ext/Encode/lib/Encode/Alias.pm @@ -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"' ); -- 2.7.4