public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Subject: Re: cygpath 2.6.0: -m " C:" and garbled output
Date: Thu, 06 Oct 2016 19:26:00 -0000	[thread overview]
Message-ID: <cde41ab0-8b04-fe24-5356-39d3904c74af@cornell.edu> (raw)
In-Reply-To: <CAFKkpzpSu7bOCKf3uAwHrEiHcs5M9RCzVV4o2V=Lpo7PrgnGJg@mail.gmail.com>

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

  reply	other threads:[~2016-10-06 19:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-06 14:51 Andre Maroneze
2016-10-06 19:26 ` Ken Brown [this message]
2016-10-06 20:47 ` Achim Gratz
2016-10-06 22:57   ` Andre Maroneze

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cde41ab0-8b04-fe24-5356-39d3904c74af@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).