wildcards don't work in directory with files with odd characters

Chris Wagner wagnerc@plebeian.com
Tue May 19 19:08:18 GMT 2020


On 2020-05-19 6:49 am, Andrey Repin wrote:
> Then take a look at this thread:
> https://cygwin.com/pipermail/cygwin/2020-March/thread.html#174
> 
> You'll need correctly configured LANG and CYGWIN's glob option.

That info should definately be in the FAQ.  Although I would still 
consider this behavior a bug.


C:\cygwin64\tmp\wild>dir
05/18/2020  09:46 PM                 0 foo
05/18/2020  09:55 PM                 0 
Highlander-S03E21-Finalé_Part_I-22.mkv

C:\cygwin64\tmp\wild>set LANG=
C:\cygwin64\tmp\wild>ls *
ls: cannot access '*': No such file or directory

C:\cygwin64\tmp\wild>set LANG=en_US
C:\cygwin64\tmp\wild>ls *
foo  Highlander-S03E21-Finalé_Part_I-22.mkv

C:\cygwin64\tmp\wild>set LANG=x
C:\cygwin64\tmp\wild>ls *
ls: cannot access '*': No such file or directory

C:\cygwin64\tmp\wild>set LANG=en
C:\cygwin64\tmp\wild>ls *
foo

C:\cygwin64\tmp\wild>set LANG=de
C:\cygwin64\tmp\wild>ls *
foo

C:\cygwin64\tmp\wild>set LANG=en_US
C:\cygwin64\tmp\wild>ls *
foo  Highlander-S03E21-Finalé_Part_I-22.mkv



Thanks.


More information about the Cygwin mailing list