aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/xlibi18n/lcCT.c
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src/xlibi18n/lcCT.c')
-rw-r--r--libX11/src/xlibi18n/lcCT.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/libX11/src/xlibi18n/lcCT.c b/libX11/src/xlibi18n/lcCT.c
index f3a91e6c0..4eee21dcf 100644
--- a/libX11/src/xlibi18n/lcCT.c
+++ b/libX11/src/xlibi18n/lcCT.c
@@ -125,6 +125,8 @@ static const CTDataRec default_ct_data[] =
#endif
/* For use by utf8 -> ctext */
{ "BIG5-0:GLGR", "\033%/2"},
+ { "BIG5HKSCS-0:GLGR", "\033%/2"},
+ { "GBK-0:GLGR", "\033%/2"},
/* used by Emacs, but not backed by ISO-IR */
{ "BIG5-E0:GL", "\033$(0" },
{ "BIG5-E0:GR", "\033$)0" },
@@ -319,7 +321,7 @@ _XlcParseCharSet(
const char *ptr = charset->ct_sequence;
int length;
int char_size;
-
+
if (*ptr == '\0')
return False;
@@ -751,7 +753,7 @@ cttocs(
or stop the current run. */
if (charset) {
if (charset != ch_charset)
- break;
+ break;
} else {
state->charset = charset = ch_charset;
}
@@ -791,7 +793,7 @@ cttocs(
or stop the current run. */
if (charset) {
if (charset != state->charset)
- break;
+ break;
} else {
charset = state->charset;
}
@@ -1097,7 +1099,7 @@ strtocs(
while (side == (*((unsigned char *) src) & 0x80) && length-- > 0)
*dst++ = *src++;
-
+
*from_left -= src - (const char *) *from;
*from = (XPointer) src;
*to_left -= dst - (char *) *to;
@@ -1133,7 +1135,7 @@ cstostr(
|| !((XlcCharSet) args[0] == state->GL_charset
|| (XlcCharSet) args[0] == state->GR_charset))
return -1;
-
+
csptr = *((const char **) from);
string_ptr = *((char **) to);
csstr_len = *from_left;
@@ -1262,7 +1264,7 @@ open_cstostr(
/* =========================== Initialization =========================== */
Bool
-_XlcInitCTInfo()
+_XlcInitCTInfo(void)
{
if (ct_list == NULL) {
const CTDataRec *ct_data;