1 ###############################################################################
2 # Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
4 # Permission is hereby granted, free of charge, to any person obtaining a
5 # copy of this software and associated documentation files (the "Software"),
6 # to deal in the Software without restriction, including without limitation
7 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 # and/or sell copies of the Software, and to permit persons to whom the
9 # Software is furnished to do so, subject to the following conditions:
11 # The above copyright notice and this permission notice (including the next
12 # paragraph) shall be included in all copies or substantial portions of the
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 # DEALINGS IN THE SOFTWARE.
24 diff --git a/nls/zh_CN.gb18030/XI18N_OBJS b/nls/zh_CN.gb18030/XI18N_OBJS
25 index a92b403..0a5a137 100644
26 --- a/nls/zh_CN.gb18030/XI18N_OBJS
27 +++ b/nls/zh_CN.gb18030/XI18N_OBJS
30 # XI18N objects table for zh_CN.gb18030 locale
32 -XLC common/xlcUTF8Load _XlcUtf8Loader # XLC_open
33 +XLC common/xlcGB18030 _XlcGb18030Loader # XLC_open
34 XIM common/ximcp _XimOpenIM _XimRegisterIMInstantiateCallback _XimUnRegisterIMInstantiateCallback # XIM_open XIM_register XIM_unregister
35 XOM common/xomGeneric _XomGenericOpenOM # XOM_open
36 diff --git a/nls/zh_CN.gb18030/XLC_LOCALE.pre b/nls/zh_CN.gb18030/XLC_LOCALE.pre
37 index f9544c7..8950080 100644
38 --- a/nls/zh_CN.gb18030/XLC_LOCALE.pre
39 +++ b/nls/zh_CN.gb18030/XLC_LOCALE.pre
41 XCOMM XFree86 NLS for Chinese encoding GB18030
42 -XCOMM Modified from xc/nls/XLC_LOCALE/en_US.UTF-8
43 -XCOMM by James Su <suzhe@turbolinux.com.cn>
46 XCOMM XLC_FONTSET category
50 -on_demand_loading True
54 XCOMM We leave the legacy encodings in for the moment, because we don't
55 XCOMM have that many ISO10646 fonts yet.
56 XCOMM fs0 class (7 bit ASCII)
62 - primary ISO8859-1:GL
65 + charset ISO8859-1:GL
66 + font GBK1988.1989-0:GL;ISO8859-1:GL
69 -XCOMM fs1 class (ISO8859 families)
76 - primary ISO8859-1:GR
77 + charset GB18030.2000-0:GLGR
79 + primary GB18030.2000-0:GLGR,[\x8140,\xA0FE]
80 + supplement sunudczh.GB18030.2000-0:GLGR,[\xA140,\xA1A0]->\x2121,\
81 + [\xA240,\xA2A0]->\x2221,\
82 + [\xA340,\xA3A0]->\x2321,\
83 + [\xA440,\xA4A0]->\x2421,\
84 + [\xA540,\xA5A0]->\x2521,\
85 + [\xA640,\xA6A0]->\x2621,\
86 + [\xA740,\xA7A0]->\x2721,\
87 + [\xAAA1,\xAAFE]->\x2821,\
88 + [\xABA1,\xABFE]->\x2921,\
89 + [\xACA1,\xACFE]->\x2A21,\
90 + [\xADA1,\xADFE]->\x2B21,\
91 + [\xAEA1,\xAEFE]->\x2C21,\
92 + [\xAFA1,\xAFFE]->\x2D21,\
93 + [\xF8A1,\xF8FE]->\x2E21,\
94 + [\xF9A1,\xF9FE]->\x2F21,\
95 + [\xFAA1,\xFAFE]->\x3021,\
96 + [\xFBA1,\xFBFE]->\x3121,\
97 + [\xFCA1,\xFCFE]->\x3221,\
98 + [\xFDA1,\xFDFE]->\x3321,\
99 + [\xFEA1,\xFEFE]->\x3421
103 -XCOMM fs2 class (Chinese Han Character)
107 - name GB2312.1980-0:GL
110 - primary GB2312.1980-0:GL
114 -XCOMM fs3 class (Chinese Han Character GBK)
121 - substitute GB13000.1993-1:GLGR
123 + charset GB18030.2000-1:GLGR
124 + font GB18030.2000-1:GLGR
140 @@ -75,32 +56,33 @@ XLC_XLOCALE
141 encoding_name GB18030
143 state_depend_encoding False
144 +wc_encoding_mask \x00000000
152 - ct_encoding ISO8859-1:GL
155 + wc_encoding \x00000000
156 + ct_encoding GB18030.2000-0:GLGR
163 - ct_encoding ISO8859-1:GR
166 + mb_encoding \x81\x30\x81\x30
167 + wc_encoding \x00005e84
168 + ct_encoding GB18030.2000-1:GLGR
176 - ct_encoding GB2312.1980-0:GL; GB2312.1980-0:GR
182 - ct_encoding ISO10646-1
185 + wc_encoding \x00000000
186 + ct_encoding ISO8859-1:GL