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

Pedro Alves palves@redhat.com
Fri Nov 30 19:02:00 GMT 2012


On 11/30/2012 04:28 PM, Jerome Guitton wrote:
> Eli Zaretskii (eliz@gnu.org):
> 
>>> Same result: case sensitive.
>>
>> Thanks, now we know.
> 
> Hmm. From what I read in Cygwin's documentation, the situation could
> actually be a bit more complex than that. There is at least an option
> (upcaseenv) that can have an impact on Cygwin's behavior. So a test at
> configure time would be useful.

You could do a little setenv/getenv test in gdb itself (and cache the
result), much like your little test you posted before, but built in.
Use some unlikely environment var name (__GDB_TEST_CASE_SENSITIVITY or
some such).

-- 
Pedro Alves



More information about the Gdb-patches mailing list