[KoCo-CVS] [Commit] cjkcodecs/src/maps tweak_gbk.h
Brought to you by:
perky
From: Hye-Shik C. <pe...@us...> - 2003-05-28 07:37:57
|
perky 03/05/28 00:37:55 Modified: src/maps tweak_gbk.h Log: Add a tweak for 0xA840 gbk/gb2312 inconsistency. Revision Changes Path 1.3 +4 -2 cjkcodecs/src/maps/tweak_gbk.h Index: tweak_gbk.h =================================================================== RCS file: /cvsroot/koco/cjkcodecs/src/maps/tweak_gbk.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- tweak_gbk.h 20 May 2003 10:59:09 -0000 1.2 +++ tweak_gbk.h 28 May 2003 07:37:55 -0000 1.3 @@ -1,8 +1,10 @@ -/* $Id: tweak_gbk.h,v 1.2 2003/05/20 10:59:09 perky Exp $ */ +/* $Id: tweak_gbk.h,v 1.3 2003/05/28 07:37:55 perky Exp $ */ #define GBK_PREDECODE(dc1, dc2, assi) \ - if ((dc1) == 0xa1 && (dc2) == 0xaa) (assi) = 0x2014; \ + if ((dc1) == 0xa1 && (dc2) == 0xaa) (assi) = 0x2014; \ + else if ((dc1) == 0xa8 && (dc2) == 0x44) (assi) = 0x2015; \ else if ((dc1) == 0xa1 && (dc2) == 0xa4) (assi) = 0x00b7; #define GBK_PREENCODE(code, assi) \ if ((code) == 0x2014) (assi) = 0xa1aa; \ + else if ((code) == 0x2015) (assi) = 0xa844; \ else if ((code) == 0x00b7) (assi) = 0xa1a4; |