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.da...@assyoma.it - i...@assyoma.it
GPG public key ID: FF5F32A8

--
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

Reply via email to