summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/mimetypes
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2012-03-21 10:03:26 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-22 13:29:50 +0100
commitf89bf2c15354729c5615209588c235e5eb311c0f (patch)
treedbee74414d79bca06cf75987c947a34427029365 /tests/auto/corelib/mimetypes
parent5ec5ce354904d35c013512a1d38c24502e298657 (diff)
Make comment() work in the C locale too.
The parser makes the default language en_US, and no mimetype xml says <comment xml:lang="C">, so use the en_US string for the C locale, rather than returning an empty string. Change-Id: Iad7c142e8078abe357773249416e7ce9b3e29a92 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/mimetypes')
-rw-r--r--tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp
index 9076f37c7c..ecea1a927e 100644
--- a/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp
+++ b/tests/auto/corelib/mimetypes/qmimedatabase/tst_qmimedatabase.cpp
@@ -56,7 +56,7 @@ static const char yastFileName[] ="yast2-metapackage-handler-mimetypes.xml";
void initializeLang()
{
qputenv("LC_ALL", "");
- qputenv("LANG", "en_US");
+ qputenv("LANG", "C");
QCoreApplication::setApplicationName("tst_qmimedatabase"); // temporary directory pattern
}