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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=RFLzXHc8dVKYUfZzGWgoeft/Oe7iD2fnXLccRHHXyvD+4HbdLt9LV zhu/0HYZYvNAkcz5htZ97Z9CI8uOPCwnDfNASvE+Uc55gx4/iHD29ReRG9VSCXWN cc7opDIeOq0qdwFVsbrNldUJARQqcfIugQbw4q/jWRiTKmXznR32w8= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=ZaCQTBKHwgdwlI/X/5Y+C+TKzQE=; b=Q7ovGpCZXyRj1n28uxfURyoY0ogv osWGpzcHN3kkaafXzB3SGGMj7367FzPm0yjvXUqdmE/y0FZ3t8atiCD0zxPCyld6 LTZrl9BUFwRzztK7tXp0qKt3Xv/6yzLB1lV0Erw8WHV8wi26UmuqhCryCDdEgpd2 kTCGiSn7AiNcvE4= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-93.2 required=5.0 tests=AWL,BAYES_50,GOOD_FROM_CORINNA_CYGWIN,KAM_INFOUSMEBIZ,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BRBL_LASTEXT,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=UD:index.htm, index.htm, indexhtm, doublequote X-HELO: calimero.vinschen.de Date: Thu, 14 Jul 2016 19:22:34 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: cygpath -w 'a"b' Message-ID: <20160714172234.GB19533@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <000b01d1dddd$174e66a0$45eb33e0$@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7ZAtKRhVyVSsbBD2" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) --7ZAtKRhVyVSsbBD2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Jul 14 11:12, Warren Young wrote: > On Jul 14, 2016, at 9:24 AM, Warren Young wrote: > >=20 > > If you look at such a file name in Explorer, Cygwin (?) seems to be map= ping double-quotes to U+F022, which is currently not defined within Unicode: > >=20 > > http://www.fileformat.info/info/unicode/char/f022/ >=20 > 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: >=20 > http://www.fileformat.info/info/unicode/char/ff02/index.htm >=20 > That would give the visual appearance of double-quotes in file names > in Explorer without violating the restriction on 0x22 characters in > NTFS. >=20 > 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. Nope. The idea(*) was *not* to provide a typiographically similar character, the idea was to allow to express characters disallowed in the Windows namespace but allowed in the POSIX namespace by transposing them into the private use area on creating the filename and converting it back to the untransposed ASCII char when reading the filename from disk. You can't perform this action by converting the character to another *valid* character. Btw., there's a section in the Cygwin User's Guide on special characters: https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialc= hars Corinna (*) Original idea by the Interix folks, picked up by Cygwin for compatibility. --7ZAtKRhVyVSsbBD2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXh8paAAoJEPU2Bp2uRE+gFxcP/3y9kpTQIzTgEI+AwANETdOZ aY1VwVagjKLVInnAicbHmXps3SPbeCnTxt6JwRhBVaY6WaPuvJagtNvLLcfKI6T9 CpAn95VaQdyZ4ZuSvm1i55pBT+n7jAB5JQjW7uTf45bt+Wm4hyZyV78XlOXrmpTM b/HTpssHjPEjZ46Q+g9iAavE8V47sYruT73WZ5DqXeU9uY22crKHFvo+v7x2cL4d lDTHagbxktPcB40LsFheuh4rBeq1qnAUR8pbabWI1UMDBgVF/L41ITzwI/dXfHQ4 FjoctLM0bmaEmJixVr/GJCbmsHQbiAbO2OO7RE7Cwrk9C3wMVDaPD2kzB+L82bRW +PnjGMiJiukUJqulecXbdnFAMKZxxn4q/pmx4xmPCiZBbozK3Dzm/heEFtWGZh2j vxdYoueqdjNQevbthJdVPckTf7SoF1OtTz36ooPCubRHNPu4ORj7sd5nbQLEUPi0 15/rPRdSD011XrW7qpmRLgFARxlOz9oLMemDNiDgkQ1m4AjmZZiRItBliNCdVMZj C7n4KfOza0rXlxlny1bdOZE1h/VSF25YyN7M4sZ2de5OCpg5dfaA7hsM+QM+bBzE erk3GxWJmBUUJFr7uHxzsgu/J/ovJfuYlmk0STVoUdG6quqc9CJ1RkjBLR2s+GuX ZvVto7wwMDWCBZGRG4yE =G2i/ -----END PGP SIGNATURE----- --7ZAtKRhVyVSsbBD2--