From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12155 invoked by alias); 10 Dec 2012 11:01:56 -0000 Received: (qmail 12096 invoked by uid 22791); 10 Dec 2012 11:01:41 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 10 Dec 2012 11:01:31 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id E3CE66A0684; Mon, 10 Dec 2012 12:01:28 +0100 (CET) Date: Mon, 10 Dec 2012 11:01:00 -0000 From: Corinna Vinschen To: gdb-patches@sourceware.org Subject: Re: [RFA/mingw32] environment variables are case-insensitive on win32 Message-ID: <20121210110128.GA12570@calimero.vinschen.de> Reply-To: gdb-patches@sourceware.org Mail-Followup-To: gdb-patches@sourceware.org References: <834nk7urs0.fsf@gnu.org> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20121210105115.GB15147@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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/msg00230.txt.bz2 On Dec 10 11:51, Jerome Guitton wrote: > Christopher Faylor (cgf-use-the-mailinglist-please@sourceware.org): > > > I wasn't entirely sure what was decided for Cygwin but Cygwin > > environment variables are meant, like Linux, to be case sensitive. > > Please keep that in mind when implementing this. The CYGWIN=upcaseenv > > is a special case and not something that you should have to worry about. > > Right, but when GDB creates the inferior it first convert the Cygwin > environment to Win32 (using CW_CVT_ENV_TO_WINENV) and then uses > directly CreateProcess. So it seems that the the case sensitivity is > lost in the process... 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. Corinna -- Corinna Vinschen Cygwin Project Co-Leader Red Hat