projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a single sftp_senddata() to send each SFTP packet, rather than
[u/mdw/putty]
/
charset
/
localenc.c
diff --git
a/charset/localenc.c
b/charset/localenc.c
index
4d81f50
..
5eabeaf
100644
(file)
--- a/
charset/localenc.c
+++ b/
charset/localenc.c
@@
-39,6
+39,7
@@
static const struct {
{ "ISO-8859-16", CS_ISO8859_16, 1 },
{ "CP437", CS_CP437, 1 },
{ "CP850", CS_CP850, 1 },
{ "ISO-8859-16", CS_ISO8859_16, 1 },
{ "CP437", CS_CP437, 1 },
{ "CP850", CS_CP850, 1 },
+ { "CP852", CS_CP852, 1 },
{ "CP866", CS_CP866, 1 },
{ "CP1250", CS_CP1250, 1 },
{ "CP1251", CS_CP1251, 1 },
{ "CP866", CS_CP866, 1 },
{ "CP1250", CS_CP1250, 1 },
{ "CP1251", CS_CP1251, 1 },
@@
-102,7
+103,7
@@
int charset_from_localenc(const char *name)
p = name;
q = localencs[i].name;
while (*p || *q) {
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++;
}
break;
p++; q++;
}