1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-15 01:57:40 -05:00

Unicode cleanup phase 2: we now reintroduce the ability to enter a

numeric code page, and also reinstate the direct-to-font zero
translation mode (but now under an actual _name_ rather than blank).
Also add CP437 to the list since at least one expatriate DOS user
wanted it; also select a sensible ISO or KOI codepage based on the
system locale.

[originally from svn r1230]
This commit is contained in:
Simon Tatham
2001-09-05 21:01:04 +00:00
parent 6dacf35120
commit 12e7195c0e
5 changed files with 74 additions and 40 deletions

View File

@ -457,7 +457,11 @@ void load_settings(char *section, int do_host, Config * cfg)
cfg->wordness[j] = atoi(q);
}
}
gpps(sesskey, "LineCodePage", "ISO-8859-1:1987", cfg->line_codepage,
/*
* The empty default for LineCodePage will be converted later
* into a plausible default for the locale.
*/
gpps(sesskey, "LineCodePage", "", cfg->line_codepage,
sizeof(cfg->line_codepage));
gppi(sesskey, "ScrollBar", 1, &cfg->scrollbar);
gppi(sesskey, "ScrollOnKey", 0, &cfg->scroll_on_key);