X-Recipient: archive-cygwin@delorie.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:in-reply-to:references:to:mime-version:subject
	:message-id:from:date:content-type:content-transfer-encoding; q=
	dns; s=default; b=ayMOxFK1RbzUBmmPhevaaa/FWP6qdTTpWvwoOEl9Bon4jm
	bNi4m2Bxa9pdnDMRo769k+MBHdtmp4KnPJDUXN48Xl+OvcAFElXeC6yHmMi1/bXQ
	Mn66lcuDoVbR0H+DdbKeOwBk9MqZrVtrV//rO6/y6XXaXPxQLOlXd1Jj6RXFs=
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:in-reply-to:references:to:mime-version:subject
	:message-id:from:date:content-type:content-transfer-encoding; s=
	default; bh=D10MG/a9TivNmeAAAXnBdMrFoI8=; b=lQST4EjE7krg9C7pSxW0
	acZXLKhMMCrY49vb4GA/rqFmnzcMPeIHn4VgpLsxhd4gZ7SgusZwnKo2QD/DvoCo
	2yu8j9uE667/v/v4dB5tkWUXgDuNrT87qu/YpfIqKnv+NV51TMUJJW6m+1hyJdgW
	lZ4MBNNDvCXEMQk0ScwhS/k=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=1.1 required=5.0 tests=AWL,BAYES_00,BODY_8BITS,CYGWIN_OWNER_BODY,GARBLED_BODY,GIT_PATCH_2,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=cygwinownercygwincom, U*cygwin-owner, cygwin-owner@cygwin.com, H*c:alternative
X-HELO: inmx22.olympus.co.jp
In-Reply-To: <OFC009BF8B.B56C9990-ON492582D7.001F2504-492582D7.0026257B@ot.olympus.co.jp>
References: <OFADDE98D4.BA910041-ON492582D7.00014612-492582D7.00053602@ot.olympus.co.jp> <950baa09-f613-334e-7f27-b0cad8ba9d14@SystematicSw.ab.ca> <OFC009BF8B.B56C9990-ON492582D7.001F2504-492582D7.0026257B@ot.olympus.co.jp>
To: cygwin@cygwin.com
MIME-Version: 1.0
Subject: Re: cmd.exe and file name conversion from comman line argument
X-KeepSent: 383DF3D0:4F2F25B6-492582D7:0031D6A7; type=4; name=$KeepSent
Message-ID: <OF383DF3D0.4F2F25B6-ON492582D7.0031D6A7-492582D7.0032DAE2@ot.olympus.co.jp>
From: h_ono@ot.olympus.co.jp
Date: Fri, 27 Jul 2018 18:15:28 +0900
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id w6R9G7cU002566

> From: Hiroo Ono/jp/olympus@olympus
> To: cygwin@cygwin.com
> Date: 2018/07/27 15:57
> Subject: Re: cmd.exe and file name conversion from comman line argument
> Sent by: cygwin-owner@cygwin.com
> 

> c:\cygwin\home\hiroo> touch "あああ"
> 
> gives
> 
> c:\cygwin\home\hiroo> ls
> '"あああ"'

It may be related to build_argv() in 
https://github.com/mirror/newlib-cygwin/blob/master/winsup/cygwin/dcrt0.cc

line 320 to 328:
            /* Skip over characters until the closing quote */
            {
              sawquote = cmd;
              /* Handle quoting.  Only strip off quotes if the parent is
                 a Cygwin process, or if the word starts with a '@'.
                 In this case, the insert_file function needs an unquoted
                 DOS filename and globbing isn't performed anyway. */
              cmd = quoted (cmd, winshell && argc > 0 && *word != '@');
            }

As the comment says,

c:\cygwin\home\hiroo> touch @"あああ"

gives file named @あああ.
 
---------
Hiroo Ono


--
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


