From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23825 invoked by alias); 10 Dec 2012 17:16:52 -0000 Received: (qmail 23811 invoked by uid 22791); 10 Dec 2012 17:16:49 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Dec 2012 17:16:45 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 42BB8CB3CF7; Mon, 10 Dec 2012 18:16:50 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HzFlNXeHl1-4; Mon, 10 Dec 2012 18:16:50 +0100 (CET) Received: from chelles.act-europe.fr (chelles.act-europe.fr [10.10.0.160]) by mel.act-europe.fr (Postfix) with ESMTP id 3174ACB3CF6; Mon, 10 Dec 2012 18:16:50 +0100 (CET) Received: by chelles.act-europe.fr (Postfix, from userid 560) id 297531EA005A; Mon, 10 Dec 2012 18:16:50 +0100 (CET) Date: Mon, 10 Dec 2012 17:16:00 -0000 From: Jerome Guitton To: Pierre Muller Cc: 'Eli Zaretskii' , gdb-patches@sourceware.org Subject: Re: [RFA/mingw32] environment variables are case-insensitive on win32 Message-ID: <20121210171650.GJ15147@adacore.com> References: <50B902D0.6060809@redhat.com> <20121203113147.GB12055@adacore.com> <20121209235344.GA12152@ednor.casa.cgf.cx> <20121210105115.GB15147@adacore.com> <20121210110128.GA12570@calimero.vinschen.de> <20121210134935.GL31477@adacore.com> <20121210153510.GB17188@adacore.com> <002401cdd6f0$c0b317b0$42194710$%muller@ics-cnrs.unistra.fr> <834njtc1qw.fsf@gnu.org> <000601cdd6f5$10b26230$32172690$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000601cdd6f5$10b26230$32172690$@muller@ics-cnrs.unistra.fr> 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/msg00261.txt.bz2 Pierre Muller (pierre.muller@ics-cnrs.unistra.fr): > $ cat testenv.c > #include "stdio.h" > > int > main (int argc, char **argv, char **env) > { > int envindex = 1; > char *curr_env = *env; > > while (curr_env) > { > printf("env#%d is %s\n",envindex,curr_env); > curr_env = env [envindex]; > envindex++; > } > return 0; > } Hmm. I can reproduce the problem. I'm thinking that the env vector (as main's third argument) may be passed to the program by createInferior without any processing. If you try getenv, I bet that you'll have a different result.