TK> I have to study about your suggestion and how to use TK> XtAppAddConverter.
Don't bother, then. Just encapsulate the parsing into a separate function (the code is already spaghetti-like enough). >> Why do you copy the argument into locale_string, rather than directly >> doing a strcasecmp on the argument? TK> I thought strcasecmp was not portable... int my_strcasecmp(char *a, char *b) { while(a && b) { if(tolower(a) != tolower(b)) return 0; } return (!a && !b); } No need to do a copy (which I find confusing). Juliusz _______________________________________________ I18n mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/i18n