From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89229 invoked by alias); 6 Sep 2019 06:20:21 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 89220 invoked by uid 89); 6 Sep 2019 06:20:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1166 X-HELO: NAM01-BN3-obe.outbound.protection.outlook.com Received: from mail-eopbgr740114.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) (40.107.74.114) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Sep 2019 06:20:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ywgp5McT6BglhQx++GiBxDrqf3hb9jJuwumWuz75FPmNcTBO0e+RjDxnvrlkI1to4c42S5Z3daoEzJZK0Kp7zPQF8SYg5v7do7w4GEZUSmn2ZdRzF1C+73wLX/pNJ58Ecr8+ybxOmUgEVTd/HgI5CQZaXmwJPjf6hkQ1iK1AqXsGgikTTN7UNL3wmEeUIovxElgE7wPp1rSgCcXNjkn1FF/3lfG1TqQTNfCpEwwVpYj9dBN/rDuVlfIGQOmYw3axFBoczwC+yLpZhIw9bITazbHbjlNBc3Na2CnUTpyGo8CmGDTM6GrNpi1ytY0QXpYU14xAH4dvbZAxOMOMwVi67w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IqnsTxSx5YZbKCiZv8qJVc4h3rKcnqwr9myT0wQZhfE=; b=LbYXX4A8ssDo6Fb9xWORPxcEQjPOwOpkLeXc3fvuag6fIjym+vHDj4QHovi1umW9HlYcx9BpljLppyPDEGl5sGXaoy4cBQQdLBiom1xpgCgNwh4UJjJwrnkNneiqZKqlCGs2RGn4Y/FvgL8BQw2mF3q/aQQ661xae4BH30UfjgVbxrrgw1TMhepPhLmHgk8cz5g1XA1mPHBHZ+yPUUsKDnv72curGbiKlmJWmrrYoQ4ceW6gUzUDoBITmTDkoccfHPk5HvtCWOLxVnlL5t1HFvkgFdxt2qo6g5JqcTUz0R4BelqMSOBaFYfFdSf6NB3nYWiAV7ayTBz8xnrDML47HA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IqnsTxSx5YZbKCiZv8qJVc4h3rKcnqwr9myT0wQZhfE=; b=Il1bb3mRihOFP/V5qDFzOy7L1FM995Tlnsql7v3/xbAFjbfNeiIwQzLVJ9KMU+hM8W6MFXxIuJ/YZ8mnKa4IUK0f+qmNSL8tLK/SxLkBdCFDvfEc8RyDFYH+JWTzJQvT8356yPj5P7meUWnm0Cw+cv95JVMVC/iav7NLjVyGUUg= Received: from MWHPR21MB0845.namprd21.prod.outlook.com (10.173.51.139) by MWHPR21MB0509.namprd21.prod.outlook.com (10.172.95.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.2; Fri, 6 Sep 2019 06:20:17 +0000 Received: from MWHPR21MB0845.namprd21.prod.outlook.com ([fe80::3085:a037:7cbc:be5]) by MWHPR21MB0845.namprd21.prod.outlook.com ([fe80::3085:a037:7cbc:be5%5]) with mapi id 15.20.2241.014; Fri, 6 Sep 2019 06:20:16 +0000 From: "Stephen Provine via cygwin" Reply-To: Stephen Provine To: "cygwin@cygwin.com" Subject: RE: Command line processing in dcrt0.cc does not match Microsoft parsing rules Date: Fri, 06 Sep 2019 06:20:00 -0000 Message-ID: References: In-Reply-To: authentication-results: spf=none (sender IP is ) smtp.mailfrom=stephpr@microsoft.com; x-ms-exchange-purlcount: 1 x-ms-oob-tlc-oobclassifiers: OLM:10000; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: XwTNabXh4+ndUa+akLpT33WTf7OVLI5q1DG9nykQmQhbAazkNlY41W0loRmkDpT/63/ZfM9waBY7p9rt3UZrjA== X-SW-Source: 2019-09/txt/msg00054.txt.bz2 On 9/5/19 9:26 PM, Eric Blake wrote: > Rather, go is not passing the command line to CreateProcess in the way > that is unambiguously parseable in the manner expected by > CommandLineToArgvW. The specific example I gave is unambiguous and is parsed correctly by CommandLineToArgvW, so if the goal is for Cygwin to effectively simulate this function, I can confirm that it is missing this case. It's reasonable that Go's algorithm should be changed to have a better chance of working with Windows programs that manually implement command line parsing and may not match expectations for all cases. I'll follow up with them and for the time being, work around the issue with my own implementation as I've since figured out how to do that. FWIW, here's the most definitive reference I've found for how Windows binaries compiled with the Microsoft C/C++ compilers do command line parsing, in case there is any desire to address this issue at some point: http://daviddeley.com/autohotkey/parameters/parameters.htm#WINCRULES Thanks for entertaining my persistence on this topic! Stephen -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple