This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygpath -w 'a"b'
- From: Warren Young <wyml at etr-usa dot com>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Thu, 14 Jul 2016 11:12:26 -0600
- Subject: Re: cygpath -w 'a"b'
- Authentication-results: sourceware.org; auth=none
- References: <000b01d1dddd$174e66a0$45eb33e0$@gmail.com> <C32E46D2-3984-427D-B6B6-50BF252FC8A1@etr-usa.com>
On Jul 14, 2016, at 9:24 AM, Warren Young <wyml@etr-usa.com> wrote:
>
> If you look at such a file name in Explorer, Cygwin (?) seems to be mapping double-quotes to U+F022, which is currently not defined within Unicode:
>
> http://www.fileformat.info/info/unicode/char/f022/
I think this may be a typo in whatever code is doing the translation, because U+FF02 is a typographically distinct variation of the double-quote character:
http://www.fileformat.info/info/unicode/char/ff02/index.htm
That would give the visual appearance of double-quotes in file names in Explorer without violating the restriction on 0x22 characters in NTFS.
In fact, it might be a thinko rather than a typo: 0x22 -> 0xF022. It looks like someone thought they could just add 0xF000 to the character value, when the correct value os 0xFF02.
…And this is why we need man7/{ascii,latin-1,unicode}.7 files in Cygwin. :)
(In the SHTDI spirit, I’m looking into some sort of automated way to generate such files from the miscfiles originals.)
--
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