X-Recipient: archive-cygwin@delorie.com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B85893857729 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1681729528; bh=h+YXvhz3WJJ6Mp2DE+ZNkv1EGNLWJcCaw2HDHpU1DZg=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=oqKNqzRB5x+FODGM95ZK/tpRSKeJ5hYAu6yV36No4FUE4sh9xF25KUnCC1COIgy2X kro9MKrpeC74uLJPCP5zG8YYF/E/040pCrwStJ6VzQ68gdU3yqTrYfQNQhW5ZHvhR1 XpRaDCeTTEZ9NkiXdcIxUy851hyQAzTFF6dx460Y= X-Original-To: cygwin@cygwin.com Delivered-To: cygwin@cygwin.com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 189F13858C50 X-Yandex-Fwd: 1 Date: Mon, 17 Apr 2023 13:58:47 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1024479976.20230417135847@yandex.ru> To: Corinna Vinschen via Cygwin , cygwin@cygwin.com Subject: Re: Can not stat file with utf char U+F020 In-Reply-To: References: <992b3c28d7f1cfc17f7c9bb47b53f770@assyoma.it> <1274a3199d9bedab4f15d209694c6e1f@assyoma.it> MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_NUMSUBJECT, KAM_THEBAT, NICE_REPLY_A, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin@cygwin.com Cc: Andrey Repin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com Sender: "Cygwin" Greetings, Corinna Vinschen via Cygwin! > On Apr 17 07:36, Gionatan Danti via Cygwin wrote: >> Il 2023-04-14 23:01 Gionatan Danti via Cygwin ha scritto: >> > Il 2023-04-14 22:25 Corinna Vinschen via Cygwin ha scritto: >> > > We do that. You're just stumbling over tha fact that U+F020 is also >> > > used as outlined in >> > > https://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-specialchars >> > > and https://cygwin.com/pipermail/cygwin/2023-April/253478.html >> > >> > Ah, so spaces and dots are replaced respectively by U+F020 and U+F02E >> > even without the "dos" mount option? >> > Because I can not see it in my case of an NTFS filesystem with the >> > following mount options: binary,posix=0,user,noumount,auto >> >> Hi all, >> it's not clear to me why even without the "dos" mount option both space and >> dot are replaced by U+F020 and U+F02E, preventing U+F020 passthrough. >> >> Am I missing something? > It's actually not the "dos" mount option but specific filesystems > which trigger the conversion from U+0020 to U+F020. > However, the conversion back is handled in a piece of code which has > no information about the underlying filesystem, so the F0xx -> 00xx > conversion is done all the time. Adding filesystem info in this > place is really tricky. My understanding is that on Windows, a regular file name can't start or end with space, and can't end with dot. There's ways to game this rule, but in simple cases this is how it works for most part. If a similar rule can be crafted for filesystems under discussion, that could simplify the problem. -- With best regards, Andrey Repin Monday, April 17, 2023 13:53:57 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple