aboutsummaryrefslogtreecommitdiff
path: root/japanese/kinput2/files/patch-lib_CcWnn.c
blob: b16e2c08e7549c7b45d9ed610deab08403e51460 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Index: lib/CcWnn.c
===================================================================
RCS file: /home/cvs/private/hrs/kinput2/lib/CcWnn.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -p -r1.1.1.1 -r1.2
--- lib/CcWnn.c	7 Dec 2009 06:36:04 -0000	1.1.1.1
+++ lib/CcWnn.c	7 Dec 2009 06:44:58 -0000	1.2
@@ -18,6 +18,8 @@ static char *rcsid = "$Id: CcWnn.c,v 1.5
  * Author:  Makoto Ishisone, Software Research Associates, Inc., Japan
  */
 
+#include <stdlib.h>
+
 #include <X11/IntrinsicP.h>
 #include <X11/StringDefs.h>
 #include <X11/Xmu/Atoms.h>
@@ -854,6 +856,10 @@ CcWnnObject obj;
 	 * $B$G!"3P$($F$*$/!#(B
 	 */
 	current_obj = obj;
+	/* Use JSERVER if defined instead of any other configurations */
+	if (getenv("JSERVER") != NULL) {
+		obj->ccWnn.jservername = getenv("JSERVER");
+	}
 	obj->ccWnn.wnnbuf = jcOpen2(obj->ccWnn.jservername,
 				    obj->ccWnn.wnnenvname,
 				    obj->ccWnn.wnnoverrideenv,