X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=charset%2Fxenc.c;h=444af7048b169264963df3b3c3d787a6c52af1eb;hb=72640ff6152f460620431848ddf616eecf0e39cf;hp=b6532f297bf219f6b1b62234916f30d8ad674f3b;hpb=0f602f03689dbe0dfe15df60e6b82d55f69becd8;p=PuTTY.git diff --git a/charset/xenc.c b/charset/xenc.c index b6532f29..444af704 100644 --- a/charset/xenc.c +++ b/charset/xenc.c @@ -46,6 +46,7 @@ static const struct { { "koi8-u", CS_KOI8_U }, { "ibm-cp437", CS_CP437 }, { "ibm-cp850", CS_CP850 }, + { "ibm-cp852", CS_CP852 }, { "ibm-cp866", CS_CP866 }, { "microsoft-cp1250", CS_CP1250 }, { "microsoft-cp1251", CS_CP1251 }, @@ -81,7 +82,7 @@ int charset_from_xenc(const char *name) p = name; q = xencs[i].name; while (*p || *q) { - if (tolower(*p) != tolower(*q)) + if (tolower((unsigned char)*p) != tolower((unsigned char)*q)) break; p++; q++; }