checkForCodecs is not used when QT_LOCALE_IS_UTF8 is defined
authorJiang Jiang <jiang.jiang@nokia.com>
Fri, 31 Aug 2012 14:36:45 +0000 (16:36 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 2 Sep 2012 08:09:17 +0000 (10:09 +0200)
Change-Id: I3d82863cbd123dbf73eb8f5721ef9294e6365de6
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/codecs/qtextcodec.cpp

index 0edb30c..b3eaa62 100644 (file)
@@ -131,7 +131,7 @@ bool qTextCodecNameMatch(const char *n, const char *h)
 }
 
 
-#if !defined(Q_OS_WIN32) && !defined(Q_OS_WINCE)
+#if !defined(Q_OS_WIN32) && !defined(Q_OS_WINCE) && !defined(QT_LOCALE_IS_UTF8)
 static QTextCodec *checkForCodec(const QByteArray &name) {
     QTextCodec *c = QTextCodec::codecForName(name);
     if (!c) {