From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from plutone.assyoma.it (cloud.assyoma.it [212.237.56.195]) by sourceware.org (Postfix) with ESMTPS id B79313858D1E for ; Tue, 18 Apr 2023 21:09:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B79313858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=assyoma.it Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=assyoma.it Received: from webmail.assyoma.it (localhost [IPv6:::1]) by plutone.assyoma.it (Postfix) with ESMTPA id C3C13E0773C9 for ; Tue, 18 Apr 2023 23:09:07 +0200 (CEST) MIME-Version: 1.0 Date: Tue, 18 Apr 2023 23:09:07 +0200 From: Gionatan Danti To: cygwin@cygwin.com Subject: Re: Can not stat file with utf char U+F020 In-Reply-To: References: <992b3c28d7f1cfc17f7c9bb47b53f770@assyoma.it> <1274a3199d9bedab4f15d209694c6e1f@assyoma.it> Message-ID: <1a7db5a68644e5b66634d5af9b402caf@assyoma.it> X-Sender: g.danti@assyoma.it Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_NUMSUBJECT,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Il 2023-04-17 15:46 Gionatan Danti via Cygwin ha scritto: > First, I use the "dos" mount option to always trigger conversion of > space and dot at filename end into F+00xx chars. Now I am able to > create such strange-looking file (in Explorer) within cygwin itself. > For example, touch "zzs " now results in "zzs+strangechar" in > Explorer. Both cygwin and windows are able to read/write such file. > > But if I edit the filename via Explorer adding an extension (ie: from > "zzs+strangechar" to "zzs+strangechar.txt") now cygwin is suddenly > unable to read/write the file. > > It seems to me that the appended chars prevent cygwin to translate > back F0xx to 00xx (as the PUA char is not at the end of the filename > anymore). > > So, two paths should be available: > - always translate back F0xx to 00xx even if not at the end of > filename; > - otherwise, if too invasive to do it unconditionally, add an option > as "always_translate_pua" (default: off) to enable such behavior based > on user needs. > > I would (naively?) think that option 1 (always translate back PUA) > should be the preferred approach, as cygwin is at the moment > effectively unable to access some files. Hi all, any thoughts on the matter? Am I missing something? Thanks. -- Danti Gionatan Supporto Tecnico Assyoma S.r.l. - www.assyoma.it email: g.danti@assyoma.it - info@assyoma.it GPG public key ID: FF5F32A8