Remove automatic drive letter lowercasing from Option::fixString() v5.0.0-beta1
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Fri, 24 Aug 2012 11:24:12 +0000 (14:24 +0300)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Aug 2012 22:10:45 +0000 (00:10 +0200)
This enforced lowercasing causes subtle errors, like changing the
drive letter case when doing $$files(), which makes it difficult
to do any string matching against the result later.

Task-number: QTBUG-26985
Change-Id: I4973e3ac3e851e24af944295edf290cc98f02fb6
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
qmake/option.cpp

index 24c3fe5..7f0b4aa 100644 (file)
@@ -594,9 +594,6 @@ Option::fixString(QString string, uchar flags)
         string = QDir::cleanPath(string);
     }
 
-    if(string.length() > 2 && string[0].isLetter() && string[1] == QLatin1Char(':'))
-        string[0] = string[0].toLower();
-
     bool localSep = (flags & Option::FixPathToLocalSeparators) != 0;
     bool targetSep = (flags & Option::FixPathToTargetSeparators) != 0;
     bool normalSep = (flags & Option::FixPathToNormalSeparators) != 0;