|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/port/chklocale.c,v 1.2 2007/09/28 23:36:06 tgl Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/port/chklocale.c,v 1.3 2007/09/29 00:01:43 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
|
31 | 31 |
|
32 | 32 | /*
|
33 | 33 | * This table needs to recognize all the CODESET spellings for supported
|
34 |
| - * backend encodings. We don't need to handle frontend-only encodings. |
| 34 | + * backend encodings, as well as frontend-only encodings where possible |
| 35 | + * (the latter case is currently only needed for initdb to recognize |
| 36 | + * error situations). |
| 37 | + * |
35 | 38 | * Note that we search the table with pg_strcasecmp(), so variant
|
36 | 39 | * capitalizations don't need their own entries.
|
37 | 40 | */
|
@@ -138,6 +141,22 @@ static const struct encoding_match encoding_match_list[] = {
|
138 | 141 | {PG_ISO_8859_8,"ISO8859-8"},
|
139 | 142 | {PG_ISO_8859_8,"iso88598"},
|
140 | 143 |
|
| 144 | +{PG_SJIS,"SJIS"}, |
| 145 | +{PG_SJIS,"PCK"}, |
| 146 | + |
| 147 | +{PG_BIG5,"BIG5"}, |
| 148 | +{PG_BIG5,"BIG5HKSCS"}, |
| 149 | + |
| 150 | +{PG_GBK,"GBK"}, |
| 151 | + |
| 152 | +{PG_UHC,"UHC"}, |
| 153 | + |
| 154 | +{PG_JOHAB,"JOHAB"}, |
| 155 | + |
| 156 | +{PG_GB18030,"GB18030"}, |
| 157 | + |
| 158 | +{PG_SHIFT_JIS_2004,"SJIS_2004"}, |
| 159 | + |
141 | 160 | {PG_SQL_ASCII,NULL}/* end marker */
|
142 | 161 | };
|
143 | 162 |
|
|