X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/42af6a672d16302ee1b8971a7cc164120f7572ab..1ef4dce9c5e794e746d141f72168ad0275b5b68d:/config.c diff --git a/config.c b/config.c index 60d98360..09c77d57 100644 --- a/config.c +++ b/config.c @@ -1577,8 +1577,8 @@ void setup_config_box(struct controlbox *b, int midsession, "Options controlling character set translation"); s = ctrl_getset(b, "Window/Translation", "trans", - "Character set translation on received data"); - ctrl_combobox(s, "Received data assumed to be in which character set:", + "Character set translation"); + ctrl_combobox(s, "Remote character set:", 'r', 100, HELPCTX(translation_codepage), codepage_handler, P(NULL), P(NULL)); @@ -1751,6 +1751,21 @@ void setup_config_box(struct controlbox *b, int midsession, HELPCTX(connection_username), dlg_stdeditbox_handler, I(offsetof(Config,username)), I(sizeof(((Config *)0)->username))); + { + /* We assume the local username is sufficiently stable + * to include on the dialog box. */ + char *user = get_username(); + char *userlabel = dupprintf("Use system username (%s)", user); + sfree(user); + ctrl_radiobuttons(s, "When username is not specified:", 'n', 4, + HELPCTX(connection_username_from_env), + dlg_stdradiobutton_handler, + I(offsetof(Config, username_from_env)), + "Prompt", I(FALSE), + userlabel, I(TRUE), + NULL); + sfree(userlabel); + } s = ctrl_getset(b, "Connection/Data", "term", "Terminal details");