Commit 11c22fff authored by Andrew Innes's avatar Andrew Innes
Browse files

(compare_env): Convert to uppercase for comparison,

not lowercase, to match how the native Windows shell works.
parent 9a6f5b63
......@@ -664,9 +664,11 @@ compare_env (const void *strp1, const void *strp2)
while (*str1 && *str2 && *str1 != '=' && *str2 != '=')
if (tolower (*str1) > tolower (*str2))
/* Sort order in is based on uppercasing
names, so do the same here. */
if (toupper (*str1) > toupper (*str2))
return 1;
else if (tolower (*str1) < tolower (*str2))
else if (toupper (*str1) < toupper (*str2))
return -1;
str1++, str2++;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment