~mdw
/
sgt
/
charset
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctype functions require their argument to be EOF or representable as an
[sgt/charset]
/
mimeenc.c
diff --git
a/mimeenc.c
b/mimeenc.c
index
9916cf4
..
d3471d0
100644
(file)
--- a/
mimeenc.c
+++ b/
mimeenc.c
@@
-176,6
+176,13
@@
static const struct {
{ "850", CS_CP850 },
{ "csPC850Multilingual", CS_CP850 },
{ "850", CS_CP850 },
{ "csPC850Multilingual", CS_CP850 },
+ { "IBM866", CS_CP866 },
+ { "cp866", CS_CP866 },
+ { "866", CS_CP866 },
+ { "csIBM866", CS_CP866 },
+
+ { "windows-874", CS_CP874 }, /* WILD */
+
{ "windows-1250", CS_CP1250 },
{ "win-1250", CS_CP1250 }, /* WILD */
{ "windows-1250", CS_CP1250 },
{ "win-1250", CS_CP1250 }, /* WILD */
@@
-316,7
+323,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++;
}