[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: XTerm i18n



On Sat, Jan 20, 2001 at 02:10:16PM +0800, hashao@chinese.com wrote:
> But it won't activite the chinese input method I'm using (chinput). I have
> XMODIFIERS=@im=Chinput from my environment. And there is no way to specify
> a input method at xterm's command line (There should be one for user's
> convenience).
> 
> So there are XIM initialization bugs in xterm's i18n patch. 
> 

Here is a hack to enable input method. I don't know what does 
a blindly "@im=none" will do any good. It will screen
the default xmodifiers, i.e. the XMODIFIERS environment variable.
Don't do that.

Of course there are other similar places need fix.

-- 
Best regard
hashao
--- charproc.c.orig	Sat Jan 20 15:09:52 2001
+++ charproc.c	Sat Jan 20 15:11:31 2001
@@ -4972,7 +4972,7 @@
     if (!term->misc.open_im) return;
 
     if (!term->misc.input_method || !*term->misc.input_method) {
-	if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
+	if ((p = XSetLocaleModifiers(NULL)) != NULL && *p)
 	    xim = XOpenIM(XtDisplay(term), NULL, NULL, NULL);
     } else {
 	s = term->misc.input_method;

Reply to: