Win32: unify environment case-sensitivity
commit4cfe819e809baa79168d2177f5c1d32690ac91e2
authorKarsten Blees <blees@dcon.de>
Sat, 14 Jan 2012 22:42:09 +0000 (14 23:42 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 12 May 2012 04:25:50 +0000 (11 23:25 -0500)
tree51c01bc701a0ea29121e13c356779ba939b5591d
parent780cb6dfb438073aebacd4a240d7a5cc2f493778
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