X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=charset%2Flocalenc.c;h=5eabeaf141dc4ddcfe18e183324ab080dd1f537b;hb=3d466aec90909db75eef8b6aaeedcd56eb925a2a;hp=4d81f50fccda3c56825812c62278ba2bb78abb09;hpb=0f602f03689dbe0dfe15df60e6b82d55f69becd8;p=PuTTY.git diff --git a/charset/localenc.c b/charset/localenc.c index 4d81f50f..5eabeaf1 100644 --- a/charset/localenc.c +++ b/charset/localenc.c @@ -39,6 +39,7 @@ 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 }, @@ -102,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++; }