if( locale_name[n] && !strcmp( pp, locale_name[n] ) )
if( locale_name[n] && !strcasecmp( pp, locale_name[n] ) )
_XimCheckLocaleName(im, address, address_len, locale_name, len)    Xim		   im;    char	  *address;    int		   address_len;    char	  *locale_name[];    int		   len;{    int		   category_len;    char	  *pp;    register char *p;    register int   n;    Bool           finish = False;    category_len = strlen(XIM_LOCAL_CATEGORY);    if(address_len < category_len)	return (char*)NULL;    if(strncmp(address, XIM_LOCAL_CATEGORY, category_len))	return (char*)NULL;     pp = &address[category_len];    for(;;) {	for( p = pp; *p && *p != ','; p++);	if (!*p)	    finish = True;	address_len = (int)(p - pp);	*p = '\0';	for( n = 0; n < len; n++ )	    if( locale_name[n] && !strcmp( pp, locale_name[n] ) )		return locale_name[n];	if (finish)	    break;	pp = p + 1;    }    return (char *)NULL;}