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:
parent
4e50c86040
commit
b1ae070925
@ -375,7 +375,7 @@ int main(int argc, char **argv)
|
|||||||
while (arg) {
|
while (arg) {
|
||||||
if (cmdbuf->len > 0)
|
if (cmdbuf->len > 0)
|
||||||
put_byte(cmdbuf, ' '); /* add space separator */
|
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++];
|
arg = arglist->args[arglistpos++];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user