~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Missing assert.
[sgt/putty]
/
charset
/
mimeenc.c
diff --git
a/charset/mimeenc.c
b/charset/mimeenc.c
index
437781f
..
fb9243c
100644
(file)
--- a/
charset/mimeenc.c
+++ b/
charset/mimeenc.c
@@
-135,6
+135,11
@@
static const struct {
{ "850", CS_CP850 },
{ "csPC850Multilingual", CS_CP850 },
{ "850", CS_CP850 },
{ "csPC850Multilingual", CS_CP850 },
+ { "IBM852", CS_CP852 },
+ { "cp852", CS_CP852 },
+ { "852", CS_CP852 },
+ { "csIBM852", CS_CP852 },
+
{ "IBM866", CS_CP866 },
{ "cp866", CS_CP866 },
{ "866", CS_CP866 },
{ "IBM866", CS_CP866 },
{ "cp866", CS_CP866 },
{ "866", CS_CP866 },
@@
-202,7
+207,7
@@
int charset_from_mimeenc(const char *name)
p = name;
q = mimeencs[i].name;
while (*p || *q) {
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++;
}
break;
p++; q++;
}