projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Propagate my ctype fixes (r8404) from libcharset.
[u/mdw/putty]
/
charset
/
xenc.c
diff --git
a/charset/xenc.c
b/charset/xenc.c
index
b6532f2
..
1178797
100644
(file)
--- a/
charset/xenc.c
+++ b/
charset/xenc.c
@@
-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++;
}