1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-13 16:22:44 +03:00

Add GB18030 support. Contributed by Bill Huang <bill_huanghb@ybb.ne.jp>

(ODBC support has not been committed yet. left for Hiroshi...)
This commit is contained in:
Tatsuo Ishii
2002-06-13 08:30:22 +00:00
parent 620dbc98cd
commit 14f72b9a4d
8 changed files with 190726 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
* Encoding names and routines for work with it. All
* in this file is shared bedween FE and BE.
*
* $Id: encnames.c,v 1.7 2002/03/05 05:52:44 momjian Exp $
* $Id: encnames.c,v 1.8 2002/06/13 08:28:54 ishii Exp $
*/
#ifdef FRONTEND
#include "postgres_fe.h"
@@ -60,7 +60,11 @@ pg_encname pg_encname_tbl[] =
{
"euctw", PG_EUC_TW
}, /* EUC-TW; Extended Unix Code for
* traditional Chinese */
{
"gb18030", PG_GB18030
}, /* GB18030;GB18030 */
{
"gbk", PG_GBK
}, /* GBK; Chinese Windows CodePage 936
@@ -239,7 +243,6 @@ pg_encname pg_encname_tbl[] =
{
"windows950", PG_BIG5
}, /* alias for BIG5 */
{
NULL, 0
} /* last */
@@ -353,6 +356,9 @@ pg_enc2name pg_enc2name_tbl[] =
},
{
"WIN1250", PG_WIN1250
},
{
"GB18030", PG_GB18030
}
};