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

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).
This commit is contained in:
Simon Tatham 2024-10-26 13:00:18 +01:00
parent 4e50c86040
commit b1ae070925

View File

@ -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++];
}