From b1ae070925cca859187e30f705a2e3bb6e23f58f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 26 Oct 2024 13:00:18 +0100 Subject: [PATCH] Windows Plink: accept a Unicode remote command line. Just as with other recent changes like usernames, this allows the remote command line to include characters outside the system code page, encoding as UTF-8 on the wire (as the SSH protocol has wanted all along). --- windows/plink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/plink.c b/windows/plink.c index 8b871912..30779cef 100644 --- a/windows/plink.c +++ b/windows/plink.c @@ -375,7 +375,7 @@ int main(int argc, char **argv) while (arg) { if (cmdbuf->len > 0) put_byte(cmdbuf, ' '); /* add space separator */ - put_dataz(cmdbuf, cmdline_arg_to_str(arg)); + put_dataz(cmdbuf, cmdline_arg_to_utf8(arg)); arg = arglist->args[arglistpos++]; }