delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/03/22/13:10:45

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:subject:mime-version:content-type
:content-transfer-encoding:date:from:cc:in-reply-to:references
:message-id; q=dns; s=default; b=YD6ANcHxTtpHYE7VD4aQEfbzx+Mvygj
K3MiPnrnLMpuGR0K09jqlpBFMKohyyFC2Mxf0h4qPoCORb/zlFnO1y50W+bCbRy0
IKaETJ+490kQ/xIUWNkV7d63LX8o6dU3anEa35yNsbhNeNvHVxO5PPs1+7R737fA
mam6iu9pd0aM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:subject:mime-version:content-type
:content-transfer-encoding:date:from:cc:in-reply-to:references
:message-id; s=default; bh=DAt6WANQzPeIkTG0/SOw9jOABmQ=; b=wBfzQ
SjGZOoWqSOYKwBiFprnbvD3SJMuXJzeCYwJ1c9PFXd0k8gKMkPZdWVFFl5+YB1kw
CAZS78+9wj6H/pl5WwHCEKNl3todGDqDqJ9B4ewtUf2Ne+TCT3a3y2Ei6H5bovCK
+YDSAl6l++CMgNBvAZh3VTNdNQz6l+UTjoHKDU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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
To: cygwin AT cygwin DOT 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
Date: Thu, 22 Mar 2018 10:10:27 -0700
From: Kaz Kylheku <920-082-4242 AT kylheku DOT com>
Cc: Dmitry Katsubo <dma_k AT mail DOT ru>
In-Reply-To: <1547310513.20180322142446@yandex.ru>
References: <08d9621d-b9a0-c0d7-b58b-581ab957a08c AT mail DOT ru> <1547310513 DOT 20180322142446 AT yandex DOT ru>
Message-ID: <a2f8e7e7dc6da9d4a38e3ea24269b185@mail.kylheku.com>
X-Sender: 920-082-4242 AT kylheku DOT com
User-Agent: Roundcube Webmail/0.9.2
X-CMAE-Envelope: MS4wfHnOSDDy86fR20dDHQ/PF12ptsper9NH5rhLEX8AGkFP9LkmUQzaF5T6vHBhxFosucMhZkP3yzMZhMB3ubuT/7O9FYQR/i4+OZ+uCTUn4SyphU3BqQJs RBBnXCk7whGlgPmCYcXjrpJxzKkLP22rYlk22xkIFEceOh4CXi11QvcrmAyrXsjJBLVlWR0joGKZjA==
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w2MHAi5v019656

On 2018-03-22 04:24, Andrey Repin wrote:
> Greetings, Dmitry Katsubo!
> 
>> Dear Cygwin community,
> 
>> I observe the following on my Cygwin:
> 
> 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 
Cygnal
project could address:

http://www.kylheku.com/cygnal/

Cygnal is an ultra-light fork of the Cygwin DLL that is intended for 
users like Dmitry Katsubo, who run Cygwin programs out of the Windows 
environment directly, after building them in Cygwin.

> 
>> when I put quotes around file that has
>> non-ASCII symbols, these quotes are passed to argv of the process 
>> literally,
>> otherwise they are removed. I would expect that there is a 
>> consistency.
> 
> 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 
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 
with that
string. An influential convention is that of the MS Visual C run-time 
library;
it behooves other run-times to be compatible with that for consistency 
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019