From: Jay Libove <libove@felines.org>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: shell expansion produces e.g. "ls: cannot access '*.pdf': No such file or directory" in Windows CMD shell, but works okay in bash
Date: Mon, 23 Mar 2020 18:34:04 +0000 [thread overview]
Message-ID: <DM5PR13MB08769F2FF197701385BA2A3CCBF00@DM5PR13MB0876.namprd13.prod.outlook.com> (raw)
In-Reply-To: <1141191582.20200323204357@yandex.ru>
Hi Andrey,
(I have no idea what you mean about "top posting".)
`locale` gives the same in CMD as in bash, on this machine as on another machine on my network where I also checked, which also exhibits the same globbing problem under Windows CMD:
LANG=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_ALL=
Aha, wait! No, there is one difference: in Cygwin Terminal (which I've never run before today; I've always either just run commands in a CMD window, or run bash.exe first; I'd initially mistakenly assumed that Cygwin terminal was the same as bash-in-CMD, but clearly it's not):
LANG=en_US.UTF-8
If I set LANG=en_US.UTF-8 in a Windows CMD window, **then the globbing problem goes away**.
I'm not sure how that points towards a solution, but it certainly must be a clue.
thanks,
Jay
-----Original Message-----
From: Andrey Repin <anrdaemon@yandex.ru>
Sent: Monday 23 March 2020 18:44
To: Jay Libove <libove@felines.org>; cygwin@cygwin.com
Subject: Re: shell expansion produces e.g. "ls: cannot access '*.pdf': No such file or directory" in Windows CMD shell, but works okay in bash
Greetings, Jay Libove!
Please no top posting in this mailing list.
> Good suggestion, deleting files one by one. It's not just one file,
> but it does seem to have something to do with some file name patterns.
> I think I've got it. It's accented characters.
> I live in Spain. Spanish has accented characters such as "Asociación".
> When I remove all files containing any accented character in their name, the problem goes away.
> So the theory now is that the Cygwin argv-processing code has a problem with áccented charàcters ...
Compare the output of `locale` in Cygwin terminal and your regular console.
Most likely your files have names that do not map cleanly to your console codepage, or locale is not set in the native terminal.
--
With best regards,
Andrey Repin
Monday, March 23, 2020 20:40:57
Sorry for my terrible english...
next prev parent reply other threads:[~2020-03-23 18:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-22 17:50 Jay Libove
2020-03-22 19:08 ` Paul Moore
2020-03-22 19:27 ` Jay Libove
2020-03-22 19:41 ` Paul Moore
2020-03-22 19:54 ` Jay Libove
2020-03-22 20:15 ` Paul Moore
2020-03-23 17:43 ` Andrey Repin
2020-03-23 18:34 ` Jay Libove [this message]
2020-03-23 19:13 ` Andrey Repin
2020-03-24 7:57 ` Thomas Wolff
2020-03-23 23:04 ` Marco Atzeri
2020-03-22 19:10 ` Marco Atzeri
2020-03-22 19:15 ` Paul Moore
2020-03-28 12:21 ` Andrey Repin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DM5PR13MB08769F2FF197701385BA2A3CCBF00@DM5PR13MB0876.namprd13.prod.outlook.com \
--to=libove@felines.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).