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

Corinna Vinschen
2012-12-10T15:24:30Z

On Dec 10 17:49, Joel Brobecker wrote:
> > 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.

Cygwin is not Windows. Cygwin is a UNIX-like system like Linux,
Solaris, OpenBSD, etc. The question you should ask is this: Would
you like to match environment variable names case-insensitive on Linux,
Solaris, OpenBSD? If the answer is "no", the answer for Cygwin is "no",
too.

Corinna

--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat