Thank you for your kind suggestion.

Actually, I just found the cuplrit. For some reason, in the past I modified
Options -> Text -> Locale in Mintty's settings to it_IT (or C, I tried
both). I do now know how exactly that interacts with LC_ALL set from the
prompt, but that led to the misbehaviour I described.

I have now set Text -> Locale to "Default" and everything works fine, with
either LC_ALL="", LC_ALL=C.UTF-8 or LC_ALL=it_IT.UTF-8.


Il giorno ven 3 ott 2025 alle ore 19:27 Thomas Wolff via Cygwin <
[email protected]> ha scritto:

>
>
> Am 03.10.2025 um 10:44 schrieb Antonio DiCesare via Cygwin:
> > I have the following locales:
> >
> > LANG=it_IT.ISO-8859-3
> > LC_CTYPE="it_IT"
> > LC_NUMERIC="it_IT"
> > LC_TIME="it_IT"
> > LC_COLLATE="it_IT"
> > LC_MONETARY="it_IT"
> > LC_MESSAGES="it_IT"
> > LC_ALL=it_IT
> >
> > Everything works fine, but one thing. If I am inside a path with an
> > accented letter in it (say ~/aàa/bbb) and run the 'find' command I get
> >
> > "find: Failed to save initial working directory: No such file or
> directory"
> >
> > The "ls" command, for instance, works fine. Also the 'find' command works
> > perfectly fine if I run it from ~ , but as soon as I cd to "~/aàa" it
> > breaks.
> >
> > If I run
> >
> > LC_ALL=C find
> >
> > then I get a result, but accented letters are replaced by "??". So, if I
> > have the file "càc" in the above directory, the command " LC_ALL=C find"
> > shows
> > .
> > ./c??c
> >
> > Any suggestion greatly appreciated.
> LC_ALL=C.utf8 find
> works.
> I think to remember that UTF-8 used to be the default locale for
> LC_ALL=C in cygwin, either I'm wrong or that changed.
>
> --
> 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
>

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