| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| In-Reply-To: | <20091102114207.GA7831@calimero.vinschen.de> |
| References: | <4AE65A40 DOT 9070405 AT monai DOT ca> <20091027091532 DOT GB2076 AT calimero DOT vinschen DOT de> <4AE8A278 DOT 5060406 AT monai DOT ca> <20091029110030 DOT GN28753 AT calimero DOT vinschen DOT de> <4AE9F26B DOT 4030203 AT monai DOT ca> <4AEC9A9F DOT 6080201 AT monai DOT ca> <416096c60910311333p3d26f997n1a11e7fdbc6a46a3 AT mail DOT gmail DOT com> <20091102114207 DOT GA7831 AT calimero DOT vinschen DOT de> |
| Date: | Mon, 2 Nov 2009 19:16:32 +0000 |
| Message-ID: | <416096c60911021116r3f4e1ee4u1787e18214de2b33@mail.gmail.com> |
| Subject: | Re: SOLVED: Removed 1.5.25 and installed 1.7.0, but still cannot access filenames containing Unicode |
| From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
| To: | cygwin AT cygwin DOT com |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
2009/11/2 Corinna Vinschen:
>> >> You must not use characters
>> >> in this range from U+f000 up to U+f0ff. =C2=A0There's no solution to =
this
>> >> except for "don't use these characters in filenames if they are not
>> >> explicitely written there by either Cygwin or Microsoft's SUA".
>>
>> Actually there is a possible solution: when translating a U+F0xx
>> character, first check whether the xx byte really is illegal in the
>> target charset. If it's not, it won't roundtrip correctly, so encode
>> the U+F0xx as a ^X sequence instead. Doesn't seem worth the effort
>> though.
>
> I was contemplating this over the weekend. =C2=A0I just applied a patch to
> do this. =C2=A0I tested this with various filenames containing all sorts
> of characters, including f000, which would represent an ASCII NUL, if
> used wrongly.
I've had a look at the patch. It improves roundtrip transparency for
Windows filenames at the cost of reduced transparency for POSIX
filenames.
Single U+F0xx's are now fine, but sequences of them still will not
necessarily roundtrip correctly, e.g., with a UTF-8 locale:
U+F0C3 U+F084 -> 0xC3 0x84 -> U+00C4 ('=C3=84')
And U+F0xx's on the POSIX side now won't roundtrip if they get mapped
to single bytes on the way back, e.g:
0xEF 0x80 0x8A -> U+F00A -> 0x0A (newline)
0xEF 0x81 0xBC -> U+F07C -> 0x7C (pipe)
0xEF 0x82 0x80 -> U+F080 -> 0x80 (invalid UTF-8)
Andy
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |