mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Propagate my ctype fixes (r8404) from libcharset.
[originally from svn r8405] [r8404 == 7fce7161db885ed7f0fa0c06f27d58d789a23b62 in charset repository]
This commit is contained in:
parent
75913faf82
commit
91496d37c7
@ -102,7 +102,7 @@ int charset_from_localenc(const char *name)
|
|||||||
p = name;
|
p = name;
|
||||||
q = localencs[i].name;
|
q = localencs[i].name;
|
||||||
while (*p || *q) {
|
while (*p || *q) {
|
||||||
if (tolower(*p) != tolower(*q))
|
if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
|
||||||
break;
|
break;
|
||||||
p++; q++;
|
p++; q++;
|
||||||
}
|
}
|
||||||
|
@ -202,7 +202,7 @@ int charset_from_mimeenc(const char *name)
|
|||||||
p = name;
|
p = name;
|
||||||
q = mimeencs[i].name;
|
q = mimeencs[i].name;
|
||||||
while (*p || *q) {
|
while (*p || *q) {
|
||||||
if (tolower(*p) != tolower(*q))
|
if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
|
||||||
break;
|
break;
|
||||||
p++; q++;
|
p++; q++;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ int charset_from_xenc(const char *name)
|
|||||||
p = name;
|
p = name;
|
||||||
q = xencs[i].name;
|
q = xencs[i].name;
|
||||||
while (*p || *q) {
|
while (*p || *q) {
|
||||||
if (tolower(*p) != tolower(*q))
|
if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
|
||||||
break;
|
break;
|
||||||
p++; q++;
|
p++; q++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user