]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - charset/localenc.c
Propagate my ctype fixes (r8404) from libcharset.
[PuTTY.git] / charset / localenc.c
index 4d81f50fccda3c56825812c62278ba2bb78abb09..220888778736ad2ccab70eb6779e24006b67c7e4 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++;
        }