Home GnuPG
Diffusion GnuPG 4d6807b215e7

common,w32: Refine the command line parsing for \ in quotes.

Description

common,w32: Refine the command line parsing for \ in quotes.

* common/t-w32-cmdline.c (test_all): Add new test cases.
* common/w32-misc.c (strip_one_arg): Add arg endquote.
(parse_cmdstring): Take care of backslashes in quotes.

I found some new test vectors from Microsoft.

(cherry picked from commit 20c60076866904187a09393de596deef286116f8)

Details

Provenance
wernerAuthored on Mar 4 2021, 12:30 PM
Parents
rG90ddd1cf13cd: common: First take on handling Unicode command line args.
Branches
Unknown
Tags
Unknown