This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/mingw32] environment variables are case-insensitive on win32


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]