add: setlocale(LC_ALL, "");
context: main(int argc, char **argv){    WMPropList *style, *key, *val;    char *file = NULL, *oldfont, *newfont;    struct stat statbuf;    Bool keepXLFD = False;    int i;    ProgName = argv[0];    if (argc<2) {        print_help();        exit(0);    }    for (i=1; i < argc; i++) {        if (strcmp("--version", argv[i])==0) {            puts(PROG_VERSION);            exit(0);        } else if (strcmp("--help", argv[i])==0) {            print_help();            exit(0);        } else if (strcmp("--keep-xlfd", argv[i])==0) {            keepXLFD = True;;        } else if (argv[i][0]=='-') {            printf("%s: invalid argument '%s'\n", ProgName, argv[i]);            printf("Try '%s --help' for more information\n", ProgName);            exit(1);        } else {            file = argv[i];        }    }    WMPLSetCaseSensitive(False);    if (stat(file, &statbuf) < 0) {        perror(file);        exit(1);    }    style = WMReadPropListFromFile(file);    if (!style) {        perror(file);        printf("%s: could not load style file.\n", ProgName);        exit(1);    }    if (!WMIsPLDictionary(style)) {        printf("%s: '%s' is not a well formatted style file\n", ProgName, file);        exit(1);    }    for (i=0; FontOptions[i]!=NULL; i++) {        key = WMCreatePLString(FontOptions[i]);        val = WMGetFromPLDictionary(style, key);        if (val) {            oldfont = WMGetFromPLString(val);            newfont = convertFont(oldfont, keepXLFD);            if (oldfont != newfont) {                val = WMCreatePLString(newfont);                WMPutInPLDictionary(style, key, val);                WMReleasePropList(val);                wfree(newfont);            }        }        WMReleasePropList(key);    }    WMWritePropListToFile(style, file, True);    exit(0);}