diff options
author | shell <shell> | 2002-06-15 09:31:38 +0000 |
---|---|---|
committer | shell <shell> | 2002-06-15 09:31:38 +0000 |
commit | f9f356aaca433622982f851e663721887e807750 (patch) | |
tree | 8867bbf86f48c9bcd4927b2c92d23284eae164ad /inputmethod/Chinput/patches/patch-ad | |
parent | 0db1a5804864740af9a9e9a13470efa9bc365cb4 (diff) | |
download | pkgsrc-f9f356aaca433622982f851e663721887e807750.tar.gz |
Initial import of Chinput-3.0
(PR#17231 by Rui-Xiang Guo <rxg@netbsd.org>)
Chinese input server
---
Chinput is a Chinese input server. It supports XIM(X Input Method)
Protocol and its own protocol for Chinese platform. XIM is the
standard input protocol for DBCS input in X11. All the clients can
use it if they support XIM. Chinput now use the input engine(IME)
from Unicon, and it can support both GB and Big5 charset.
Diffstat (limited to 'inputmethod/Chinput/patches/patch-ad')
-rw-r--r-- | inputmethod/Chinput/patches/patch-ad | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/inputmethod/Chinput/patches/patch-ad b/inputmethod/Chinput/patches/patch-ad new file mode 100644 index 00000000000..88b3844f261 --- /dev/null +++ b/inputmethod/Chinput/patches/patch-ad @@ -0,0 +1,31 @@ +$NetBSD: patch-ad,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $ + +--- src/config.c.orig Mon Jun 10 22:53:45 2002 ++++ src/config.c +@@ -388,7 +388,7 @@ + if(method == cur_inputmethod) return; + + //change the encoding for later use +- if(!strcmp(chinputime[method].encoding, "GB")) ++ if(!strcmp(chinputime[method].encoding, "eucCN")) + HZServer.encoding = HZSERVER_ENCODING_GB; + else + HZServer.encoding = HZSERVER_ENCODING_BIG5; +@@ -681,7 +681,7 @@ + if(HZServer.encoding == HZSERVER_ENCODING_GB){ + for(i=0; i<index_ime; i++){ + if(!strcmp(chinputime[i].name, imd) && +- !strcmp(chinputime[i].encoding, "GB")){ ++ !strcmp(chinputime[i].encoding, "eucCN")){ + return i; + } + } +@@ -738,7 +738,7 @@ + //chinput_imserver = IMM_OpenClient("127.0.0.1", 9010); + + cur_inputmethod = id; +- if(!strcmp(chinputime[cur_inputmethod].encoding, "GB")) ++ if(!strcmp(chinputime[cur_inputmethod].encoding, "eucCN")) + HZServer.encoding = HZSERVER_ENCODING_GB; + else + HZServer.encoding = HZSERVER_ENCODING_BIG5; |