rem: ptr = strchr(Locale, '.');
add: ptr = strchr(locale, '.');
context: getLocalizedMenuFile(char *menu){    char *buffer;    char *ptr;    int len;    if (!Locale)	return NULL;    len = strlen(menu)+strlen(Locale)+8;    buffer = wmalloc(len);    /* try menu.locale_name */    snprintf(buffer, len, "%s.%s", menu, Locale);    if (access(buffer, F_OK)==0) {	return buffer;    }    /* check if it is in the form aa_bb.encoding and check for aa_bb */    ptr = strchr(Locale, '.');    if (ptr) {	*ptr = 0;	if (access(buffer, F_OK)==0) {	    return buffer;	}    }    /* now check for aa */    ptr = strchr(buffer, '_');    if (ptr) {	*ptr = 0;	if (access(buffer, F_OK)==0) {	    return buffer;	}    }    return NULL;}