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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: References: <950baa09-f613-334e-7f27-b0cad8ba9d14 AT SystematicSw DOT ab DOT ca> 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: From: h_ono AT ot DOT olympus DOT co DOT 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 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