]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - charset/localenc.c
Remove an unused variable.
[PuTTY.git] / charset / localenc.c
index 8ca277d5d1fd11a20f445545f6c2d4e037731865..5eabeaf141dc4ddcfe18e183324ab080dd1f537b 100644 (file)
@@ -39,6 +39,8 @@ static const struct {
     { "ISO-8859-16", CS_ISO8859_16, 1 },
     { "CP437", CS_CP437, 1 },
     { "CP850", CS_CP850, 1 },
+    { "CP852", CS_CP852, 1 },
+    { "CP866", CS_CP866, 1 },
     { "CP1250", CS_CP1250, 1 },
     { "CP1251", CS_CP1251, 1 },
     { "CP1252", CS_CP1252, 1 },
@@ -101,7 +103,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++;
        }