Subject: xsrc/15423: Fix the locale problem in XFree 4.2.0
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rxg@ms25.url.com.tw>
List: netbsd-bugs
Date: 01/30/2002 10:15:35
>Number:         15423
>Category:       xsrc
>Synopsis:       Fix the locale problem in XFree 4.2.0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 29 18:17:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Rui-Xiang Guo
>Release:        NetBSD 1.5ZA
>Organization:
	
>Environment:
	
	
System: NetBSD rxgpc.sparqnet.net 1.5ZA NetBSD 1.5ZA (HIVE) #0: Fri Jan 25 04:02:48 CST 2002 rxg@rxgpc.sparqnet.net:/usr/src/sys/arch/i386/compile/HIVE i386
Architecture: i386
Machine: i386
>Description:
	The Chinese XIM input server (xcin) no more works under XFree 4.2.0.
	And if we set "setenv XMODIFIERS @im=xcin" in ~/.cshrc, it will
	cause some program (like gqview, gqmpeg..etc) core dump.
	This is the problem of locale under XFree 4.2.0.
>How-To-Repeat:
	More detail on:
	http://XFree86.Org/pipermail/i18n/2002-January/002940.html

	Maybe this will be fix in next Xfree snapshot but I hope it
	could be fixed in our xsrc as soon as possiable. :)
>Fix:
	Please use this patch:
--- xc/lib/X11/xlibi18n/im/ximcp/imDefIm.c.orig Mon Jan 28 02:25:44 2002
+++ xc/lib/X11/xlibi18n/im/ximcp/imDefIm.c      Mon Jan 28 02:27:05 2002
@@ -165,7 +165,7 @@
        *p = '\0';

        for( n = 0; n < len; n++ )
-           if( locale_name[n] && !strcmp( pp, locale_name[n] ) )
+           if( locale_name[n] && !strcasecmp( pp, locale_name[n] ) )
                return locale_name[n];
        if (finish)
            break;

>Release-Note:
>Audit-Trail:
>Unformatted: