1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Fiddly fixes in code page handling

[originally from svn r1303]
This commit is contained in:
Simon Tatham 2001-09-25 21:08:24 +00:00
parent 835b7a9a18
commit 4e15d73a42

View File

@ -245,8 +245,6 @@ static struct cp_list_item cp_list[] = {
{"Win1257 (Baltic)", 1257},
{"Win1258 (Vietnamese)", 1258},
{"Win1258 (Vietnamese)", 1258},
{"CP437", 437},
{"CP819", 28591},
{"CP878", 20866},
@ -963,6 +961,8 @@ int decode_codepage(char *cp_name)
codepage = cpi->codepage;
if (codepage == CP_UTF8)
goto break_break;
if (codepage == -1)
return codepage;
if (codepage == 0) {
codepage = 65536 + (cpi - cp_list);
goto break_break;