From 958cc8dbbcb6303fbf9644378cfd9d259f0d2b22 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 24 Jul 2010 10:39:18 +0200 Subject: [PATCH] Treat Big5 as Big5-hkscs. --- src/intl/codepage.inc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/intl/codepage.inc b/src/intl/codepage.inc index 992a247b2..1c8044ef1 100644 --- a/src/intl/codepage.inc +++ b/src/intl/codepage.inc @@ -4884,13 +4884,12 @@ unsigned char *const aliases_utf8 [] = { NULL }; -/*** Big5 ***/ - -#define highhalf_big5 highhalf_NULL - -#define table_big5 table_NULL +/*** Big5, Big5-HKSCS ***/ +/* many sites set charset="Big5", although they really use "Big5-hkscs". +Big5-hkscs is superset of Big5. */ unsigned char *const aliases_big5 [] = { + "Big5-HKSCS", "Big5", NULL }; @@ -4959,7 +4958,7 @@ const struct codepage_desc codepages [] = { {"TCVN-5712", aliases_tcvn5712, highhalf_tcvn5712, table_tcvn5712, 0}, {"VISCII", aliases_viscii, highhalf_viscii, table_viscii, 0}, {"Unicode UTF-8", aliases_utf8, highhalf_utf8, table_utf8, 0}, - {"Big5", aliases_big5, highhalf_big5, table_big5, 1}, + {"Big5", aliases_big5, highhalf_NULL, table_NULL, 1}, {NULL, NULL, NULL, 0} };