diff options
| author | bors <bors@rust-lang.org> | 2015-04-27 10:49:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-04-27 10:49:11 +0000 |
| commit | 5c60145323d6e42cee5ad11efdabbd753b667d63 (patch) | |
| tree | 5cbd79def3d3749f03e9561c957eba75b82044bf /src/libstd/sys/unix/stack_overflow.rs | |
| parent | f4ab2b3a259a7a0418c6dd66dc9f11f20b0f6eff (diff) | |
| parent | e90408e91596da9fd81e77012e74bfe94b26dd83 (diff) | |
| download | rust-5c60145323d6e42cee5ad11efdabbd753b667d63.tar.gz rust-5c60145323d6e42cee5ad11efdabbd753b667d63.zip | |
Auto merge of #24820 - bradking:fix-windows-process-spawn-command-line, r=alexcrichton
Fix `make_command_line` for the case of backslashes at the end of an argument requiring quotes. We must encode the command and arguments such that `CommandLineToArgvW` recovers them in the spawned process. Simplify the logic by using a running count of backslashes as they are encountered instead of looking ahead for quotes following them. Extend `test_make_command_line` to additionally cover: * a leading quote in an argument that requires quotes, * a backslash before a quote in an argument that requires quotes, * a backslash at the end of an argument that requires quotes, and * a backslash at the end of an argument that does not require quotes.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
