Propagate my ctype fixes (r8404) from libcharset.
[u/mdw/putty] / charset / localenc.c
index 4d81f50..2208887 100644 (file)
@@ -102,7 +102,7 @@ int charset_from_localenc(const char *name)
        p = name;
        q = localencs[i].name;
        while (*p || *q) {
-           if (tolower(*p) != tolower(*q))
+               if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
                break;
            p++; q++;
        }