1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00

Propagate my ctype fixes (r8404) from libcharset.

[originally from svn r8405]
[r8404 == 7fce7161db885ed7f0fa0c06f27d58d789a23b62 in charset repository]
This commit is contained in:
Ben Harris 2009-01-11 14:20:34 +00:00
parent 75913faf82
commit 91496d37c7
3 changed files with 3 additions and 3 deletions

View 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++;
}

View File

@ -202,7 +202,7 @@ int charset_from_mimeenc(const char *name)
p = name;
q = mimeencs[i].name;
while (*p || *q) {
if (tolower(*p) != tolower(*q))
if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
break;
p++; q++;
}

View File

@ -81,7 +81,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++;
}