Win32: unify environment case-sensitivity
commit98bcd7008e1946c8551dea32901e5dd8446947bd
authorKarsten Blees <blees@dcon.de>
Sat, 14 Jan 2012 22:42:09 +0000 (14 23:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 6 Apr 2012 21:49:34 +0000 (6 16:49 -0500)
tree04ceb6805efbf4e8a8215f16f9904f841307a642
parent0839172027e0ee44f2e3c51ea3311be37a10fc65
Win32: unify environment case-sensitivity

The environment on Windows is case-insensitive. Some environment functions
(such as unsetenv and make_augmented_environ) have always used case-
sensitive comparisons instead, while others (getenv, putenv, sorting in
spawn*) were case-insensitive.

Prevent potential inconsistencies by using case-insensitive comparison in
lookup_env (used by putenv, unsetenv and make_augmented_environ).

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/mingw.c