This is the mail archive of the
mailing list for the Cygwin project.
Re: cygpath 2.6.0: -m " C:" and garbled output
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Thu, 06 Oct 2016 21:26:04 +0200
- Subject: Re: cygpath 2.6.0: -m " C:" and garbled output
- Authentication-results: sourceware.org; auth=none
- References: <CAFKkpzpSu7bOCKf3uAwHrEiHcs5M9RCzVV4o2V=Lpo7PrgnGJg@mail.gmail.com>
Andre Maroneze writes:
> 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)
A filename can legitimately start with a space and it is a relative
filename in that case. So dropping the space just to get something that
looks like a drive letter is wrong.
> In cygpath 2.6.0, this outputs C? (C followed by the unicode character
> 0xF03A, which is a ":" (0x3A) character, but prefixed with "F0").
That's how the otherwise forbidden ":" character gets encoded into the
> In cygpath 2.5.2 (and 2.4.1, which I also could test), it outputs C:,
> as I would expect.
No, that's wrong as explained above.
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple