From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109526 invoked by alias); 22 Mar 2018 17:10:34 -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 109515 invoked by uid 89); 22 Mar 2018 17:10:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:4.72, dear, Dear, Hx-spam-relays-external:ESMTPA X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 22 Mar 2018 17:10:31 +0000 Received: from kylheku.com ([70.79.163.252]) by shaw.ca with ESMTPA id z3jPecFRiU5pnz3jQekftU; Thu, 22 Mar 2018 11:10:29 -0600 X-Authority-Analysis: v=2.3 cv=Tai4SyYh c=1 sm=1 tr=0 a=95A0EdhkF1LMGt25d7h1IQ==:117 a=95A0EdhkF1LMGt25d7h1IQ==:17 a=IkcTkHD0fZMA:10 a=SMorJkV_YP8A:10 a=v2DPQv5-lfwA:10 a=2KUf1mbJAAAA:8 a=-SDUeuYrBPuwc63Exx4A:9 a=BVNYF7G3mka0SCZR:21 a=91nAHoTqSybGhERT:21 a=QEXdDO2ut3YA:10 a=LME9DoRMzU6P72L8X6EC:22 Received: from www-data by kylheku.com with local (Exim 4.72) (envelope-from <920-082-4242@kylheku.com>) id 1ez3jP-00019w-90; Thu, 22 Mar 2018 10:10:27 -0700 To: cygwin@cygwin.com Subject: Re: Quotes around command-line argument that has unicode characters are not removed X-PHP-Originating-Script: 501:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Date: Thu, 22 Mar 2018 17:25:00 -0000 From: Kaz Kylheku <920-082-4242@kylheku.com> Cc: Dmitry Katsubo In-Reply-To: <1547310513.20180322142446@yandex.ru> References: <08d9621d-b9a0-c0d7-b58b-581ab957a08c@mail.ru> <1547310513.20180322142446@yandex.ru> Message-ID: X-Sender: 920-082-4242@kylheku.com User-Agent: Roundcube Webmail/0.9.2 X-CMAE-Envelope: MS4wfHnOSDDy86fR20dDHQ/PF12ptsper9NH5rhLEX8AGkFP9LkmUQzaF5T6vHBhxFosucMhZkP3yzMZhMB3ubuT/7O9FYQR/i4+OZ+uCTUn4SyphU3BqQJs RBBnXCk7whGlgPmCYcXjrpJxzKkLP22rYlk22xkIFEceOh4CXi11QvcrmAyrXsjJBLVlWR0joGKZjA== X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00353.txt.bz2 On 2018-03-22 04:24, Andrey Repin wrote: > Greetings, Dmitry Katsubo! >=20 >> Dear Cygwin community, >=20 >> I observe the following on my Cygwin: >=20 > This is not cygwin, this is bare Windows. That may be so, yet there may be an issue here for someone packaging Cygwin programs for use as native Windows applications. That is to say, there could potentially be something here that the=20 Cygnal project could address: http://www.kylheku.com/cygnal/ Cygnal is an ultra-light fork of the Cygwin DLL that is intended for=20 users like Dmitry Katsubo, who run Cygwin programs out of the Windows=20 environment directly, after building them in Cygwin. >=20 >> when I put quotes around file that has >> non-ASCII symbols, these quotes are passed to argv of the process=20 >> literally, >> otherwise they are removed. I would expect that there is a=20 >> consistency. >=20 > Parameter unquoting done by the shell. > CMD does that differently from POSIX shells. As I seem to recall, CMD doesn't do anything, period! It passes the=20 command line as one big string. It has to since that's the OS mechanism. The quoting conventions come from how various run-time libraries deal=20 with that string. An influential convention is that of the MS Visual C run-time=20 library; it behooves other run-times to be compatible with that for consistency=20 with programs whose main() was compiled with MSVC. -- 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