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


> Date: Fri, 30 Nov 2012 16:34:01 +0100
> From: Jerome Guitton <guitton@adacore.com>
> Cc: gdb-patches@sourceware.org
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> int
> main()
> {
>   char *name;
> 
> #if defined(_WIN32) && !defined(__CYGWIN__)
>   _putenv ("foobar=set");
> #else
>   setenv("foobar", "set", 1);
> #endif
>   name = getenv("FooBar");
> 
>   if (name && strcmp (name, "set") == 0)
>     printf ("not case sensitive\n");
>   else
>     printf ("case sensitive\n");
> 
>   return 1;
> }
> 
> 
> Same result: case sensitive.

Thanks, now we know.


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