# More accurate argv-to-command-line serialization when spawning child processes on Windows · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/4d9c4ab82c61a5c6f6e120924941d2b22fd15dc9)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 4d9c4ab82c61a5c6f6e120924941d2b22fd15dc9

Requested commit: 4d9c4ab82c61a5c6f6e120924941d2b22fd15dc9

Commit: 4d9c4ab82c61a5c6f6e120924941d2b22fd15dc9

Tree: 624c05a4d1b0326714bb924f1ef2642495a05729

Author: Carl Åstholm

Committer: Carl Åstholm

## Message

```
More accurate argv-to-command-line serialization when spawning child processes on Windows

The old implementation had a bug in it in that it didn't quote empty strings, but it also didn't properly follow the special quoting rules required for the first argument (the executable name). This new implementation serializes the argv correctly such that it can be parsed by the `CommandLineToArgvW` algorithm.

```

## Parents

- [13f78e24b82d70eeae1495ffd5f7b7389db715a7](https://git.cafe/gitcafe/zig/commit/13f78e24b82d70eeae1495ffd5f7b7389db715a7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/4d9c4ab82c61a5c6f6e120924941d2b22fd15dc9?format=markdown)
