From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21207 invoked by alias); 10 Dec 2012 13:50:07 -0000 Received: (qmail 21194 invoked by uid 22791); 10 Dec 2012 13:50:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Dec 2012 13:50:01 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id A7E962E2CB for ; Mon, 10 Dec 2012 08:50:00 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9h4bAEBO85+U for ; Mon, 10 Dec 2012 08:50:00 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 390AE2E2D5 for ; Mon, 10 Dec 2012 08:50:00 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id E3299C3B05; Mon, 10 Dec 2012 17:49:35 +0400 (RET) Date: Mon, 10 Dec 2012 13:50:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: [RFA/mingw32] environment variables are case-insensitive on win32 Message-ID: <20121210134935.GL31477@adacore.com> References: <20121130140844.GF2768@adacore.com> <83y5hjt8ll.fsf@gnu.org> <20121130153401.GH2768@adacore.com> <83wqx3t6r9.fsf@gnu.org> <20121130162852.GD32262@adacore.com> <50B902D0.6060809@redhat.com> <20121203113147.GB12055@adacore.com> <20121209235344.GA12152@ednor.casa.cgf.cx> <20121210105115.GB15147@adacore.com> <20121210110128.GA12570@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121210110128.GA12570@calimero.vinschen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00236.txt.bz2 > No, it's not. The Windows environment is NOT case insensitive, it's > case-preserving. That's a big difference. A process inherits the > environment in exactly the same case as has been used by its parent. I would like to pause this discussion about cygwin for a second, here: I am concerned that we are slowly allowing ourselves to hold Jerome's patch, which works on MinGW, because it does not fix the problem on cygwin. Jerome is happy to try to help if it's not too time consuming, but it is starting to look like things are far from simple in this case. This is why I propose we do 2 things: 1. Decide whether we want GDB to match environment variable names using case-sensitive or case-insensentive functions on cygwin. Right now, it's case-sensitive. FWIW, we are offering to change that behavior, and it seems more user-friencly at the moment, but either choice is fine with me. If no concensus can be reached on this, then we'll revert to the original behavior. 2. Commit Jerome's patch which implements the decision from (1), letting a more elaborate handling of environment variables as a followup patch for someone more involved in cygwin than we are. Thanks, -- Joel