1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

On Windows, character set specifications of the form 'IBM437' would never have

worked due to a typo. Spotted by Todd Burkey.

[originally from svn r8755]
This commit is contained in:
Jacob Nevins 2009-11-22 19:10:11 +00:00
parent 269979809e
commit 99455bfc33

View File

@ -1088,7 +1088,7 @@ int decode_codepage(char *cp_name)
if (tolower(d[0]) == 'c' && tolower(d[1]) == 'p') if (tolower(d[0]) == 'c' && tolower(d[1]) == 'p')
d += 2; d += 2;
if (tolower(d[0]) == 'i' && tolower(d[1]) == 'b' if (tolower(d[0]) == 'i' && tolower(d[1]) == 'b'
&& tolower(d[1]) == 'm') && tolower(d[2]) == 'm')
d += 3; d += 3;
for (s = d; *s >= '0' && *s <= '9'; s++); for (s = d; *s >= '0' && *s <= '9'; s++);
if (*s == 0 && s != d) if (*s == 0 && s != d)