diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2004-02-23 21:37:32 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2004-02-23 21:37:32 +0000 |
commit | 4a35351348e3503ac1baab679ecf2833a4644d46 (patch) | |
tree | b20f43666621716643676c13a7b51bff64443483 /charset.c | |
parent | 39e25abf34c05c0ff711aef5603aeebabeda8153 (diff) |
merge most of XFree86 RC3 (4.3.99.903) from vendor branch. bug #214XORG-RELEASE-1-BASEXEVIE-MERGEXINERAMA_2
Diffstat (limited to 'charset.c')
-rw-r--r-- | charset.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -19,7 +19,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -/* $XFree86: xc/programs/luit/charset.c,v 1.7 2003/02/24 01:10:25 dawes Exp $ */ +/* $XFree86: xc/programs/luit/charset.c,v 1.9 2004/01/27 02:30:30 dawes Exp $ */ #include <stdlib.h> #include <stdio.h> @@ -40,6 +40,7 @@ IdentityRecode(unsigned int n, CharsetPtr self) return n; } +#ifdef UNUSED static int IdentityReverse(unsigned int n, CharsetPtr self) { @@ -66,6 +67,7 @@ IdentityReverse(unsigned int n, CharsetPtr self) } #undef IS_GL } +#endif static int NullReverse(unsigned int n, CharsetPtr self) @@ -152,6 +154,8 @@ OtherCharsetRec otherCharsets[] = { {"GBK", init_gbk, mapping_gbk, reverse_gbk, stack_gbk}, {"UTF-8", init_utf8, mapping_utf8, reverse_utf8, stack_utf8}, {"SJIS", init_sjis, mapping_sjis, reverse_sjis, stack_sjis}, + {"BIG5-HKSCS", init_hkscs, mapping_hkscs, reverse_hkscs, stack_hkscs}, + {"GB18030", init_gb18030, mapping_gb18030, reverse_gb18030, stack_gb18030}, {0, 0, 0, 0, 0} }; @@ -416,6 +420,8 @@ LocaleCharsetRec localeCharsets[] = { { "gbk", 0, 1, NULL, NULL, NULL, NULL, "GBK"}, { "UTF-8", 0, 1, NULL, NULL, NULL, NULL, "UTF-8"}, { "SJIS", 0, 1, NULL, NULL, NULL, NULL, "SJIS"}, + { "Big5-HKSCS", 0, 1, NULL, NULL, NULL, NULL, "BIG5-HKSCS"}, + { "gb18030", 0, 1, NULL, NULL, NULL, NULL, "GB18030"}, { 0, 0, 0, 0, 0, 0, 0} }; |