www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/07/27/05:16:08

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: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 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-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 AT cygwin DOT 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 DOT BA910041-ON492582D7 DOT 00014612-492582D7 DOT 00053602 AT ot DOT olympus DOT co DOT jp> <950baa09-f613-334e-7f27-b0cad8ba9d14 AT SystematicSw DOT ab DOT ca> <OFC009BF8B DOT B56C9990-ON492582D7 DOT 001F2504-492582D7 DOT 0026257B AT ot DOT olympus DOT co DOT jp>
To: cygwin AT cygwin DOT 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 AT ot DOT olympus DOT co DOT jp
Date: Fri, 27 Jul 2018 18:15:28 +0900
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id w6R9G7cU002566

> From: Hiroo Ono/jp/olympus AT olympus
> To: cygwin AT cygwin DOT com
> Date: 2018/07/27 15:57
> Subject: Re: cmd.exe and file name conversion from comman line argument
> Sent by: cygwin-owner AT cygwin DOT 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


- Raw text -


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