projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Raise the default scrollback from 200 to 2000 lines. The former was
[u/mdw/putty]
/
charset
/
xenc.c
diff --git
a/charset/xenc.c
b/charset/xenc.c
index
5359b16
..
444af70
100644
(file)
--- a/
charset/xenc.c
+++ b/
charset/xenc.c
@@
-46,6
+46,8
@@
static const struct {
{ "koi8-u", CS_KOI8_U },
{ "ibm-cp437", CS_CP437 },
{ "ibm-cp850", CS_CP850 },
{ "koi8-u", CS_KOI8_U },
{ "ibm-cp437", CS_CP437 },
{ "ibm-cp850", CS_CP850 },
+ { "ibm-cp852", CS_CP852 },
+ { "ibm-cp866", CS_CP866 },
{ "microsoft-cp1250", CS_CP1250 },
{ "microsoft-cp1251", CS_CP1251 },
{ "microsoft-cp1252", CS_CP1252 },
{ "microsoft-cp1250", CS_CP1250 },
{ "microsoft-cp1251", CS_CP1251 },
{ "microsoft-cp1252", CS_CP1252 },
@@
-80,7
+82,7
@@
int charset_from_xenc(const char *name)
p = name;
q = xencs[i].name;
while (*p || *q) {
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++;
}
break;
p++; q++;
}