delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/10/06/15:16:00

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=E2ZqLMHkSt9tAL5K
TOs4+YDTR52ESFaqxS2T4H/jxhgF5asK9qCm2syFv3IjWJBN7Icr/loQueawmoM8
MD1OG9hxks0woNX6sjmEX5C6C+5JUVN7i8OIc9JhEdyQntu5Sawhoj5uWGZ805IE
D5nnz0R1H61XT5v4LwyNSJbW7dY=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=jD6XrXPR1PmfwYldiK1xSj
ShwOg=; b=B693bEGOcf0aYqcnQrjXr4GzwZQY6jv+fS9vlgd20SkHprFDY6v1ov
amsAOuSxMU3VFsog7JKcocg3Jr2kqzjDd3ZdpQDHyUPj+7za60qYCOQO49tgYG8i
9ah49XhSCKi2T1P3dAKYs/mCXlWZu6b9nXYzJcBYCs+1L35BWO4iQ=
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=-2.0 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=garbled, 2.4.1, 2.5.2, 0xf03a
X-HELO: limerock01.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: cygpath 2.6.0: -m " C:" and garbled output
To: cygwin AT cygwin DOT com
References: <CAFKkpzpSu7bOCKf3uAwHrEiHcs5M9RCzVV4o2V=Lpo7PrgnGJg AT mail DOT gmail DOT com>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <cde41ab0-8b04-fe24-5356-39d3904c74af@cornell.edu>
Date: Thu, 6 Oct 2016 15:15:31 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <CAFKkpzpSu7bOCKf3uAwHrEiHcs5M9RCzVV4o2V=Lpo7PrgnGJg@mail.gmail.com>
X-PMX-Cornell-Gauge: Gauge=XXXXX
X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none;
X-IsSubscribed: yes

On 10/6/2016 8:38 AM, Andre Maroneze wrote:
> I just noticed a difference in behavior between versions 2.5.2 and
> 2.6.0 of cygpath (the ones I could test): if I run
>
> cygpath -m " C:"
>
> (notice the space before the C, inside the double quotes)
>
> In cygpath 2.6.0, this outputs C? (C followed by the unicode character
> 0xF03A, which is a ":" (0x3A) character, but prefixed with "F0").
> In cygpath 2.5.2 (and 2.4.1, which I also could test), it outputs C:,
> as I would expect.
>
> This happens on both Windows 7 and Windows 8.1, and not only on my
> machine, so it seems fairly deterministic.
>
> Is it some sort of undefined behavior to give an argument to cygpath
> starting with a space inside double quotes?

I think you'll find the explanation here:

https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialchars

I don't know why this doesn't happen with earlier versions of cygwin.

Ken

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