X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F2E26385B834
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=maxrnd.com
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=mark@maxrnd.com
Subject: Re: bug report: shell expansion in argv[] processing sensitive to
 LANG, e.g. "ls: cannot access '*.pdf': No such file or directory", but works
 okay in bash
To: Thomas Wolff <towo@towo.net>, cygwin@cygwin.com
References: <DM5PR13MB0876FCF9357D4881E9A4476FCBF10@DM5PR13MB0876.namprd13.prod.outlook.com>
 <dccd5d06-0edf-7a28-7640-b33e8864e464@towo.net>
From: Mark Geisert <mark@maxrnd.com>
Message-ID: <cb2019a2-fe84-02a4-d6dc-309cedbe7746@maxrnd.com>
Date: Tue, 24 Mar 2020 02:27:53 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 Firefox/52.0 SeaMonkey/2.49.4
MIME-Version: 1.0
In-Reply-To: <dccd5d06-0edf-7a28-7640-b33e8864e464@towo.net>
X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE,
 TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>


> Maybe it can simply be fixed by changing the order of setting up locale stuff 
> and applying the expansion in cygwin?
> (I would look into the code if I had a clue where to find the respective things.)

I would guess dcrt0.cc, the Cygwin DLL runtime initialization.

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