Disable the warnings about not being able to dlopen ICU libraries.
authorPino Toscano <pino@debian.org>
Mon, 14 Sep 2020 13:56:35 +0000 (14:56 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Mon, 14 Sep 2020 13:56:35 +0000 (14:56 +0100)
Last-Update: 2012-05-21
Forwarded: not-needed

Most of the applications don't need ICU-based functions for locale-aware
string upper- and lower-casing and comparison. If not present, Qt will use the
own ways (i.e. those used also in Qt < 4.8).

Gbp-Pq: Name no_libicu_message.diff

src/corelib/tools/qlocale_icu.cpp

index 0b2ac2c8fb5b1c0ce1ed2e63f769251db13025d3..9447870f280619e262c2b6d8e18e13566e64666a 100644 (file)
@@ -88,7 +88,9 @@ bool qt_initIcu(const QString &localeString)
         QLibrary lib(QLatin1String("icui18n"), QLatin1String(U_ICU_VERSION_SHORT));
         lib.setLoadHints(QLibrary::ImprovedSearchHeuristics);
         if (!lib.load()) {
+#if 0
             qWarning() << "Unable to load library icui18n" << lib.errorString();
+#endif
             status = ErrorLoading;
             return false;
         }
@@ -118,7 +120,9 @@ bool qt_initIcu(const QString &localeString)
         QLibrary ucLib(QLatin1String("icuuc"), QLatin1String(U_ICU_VERSION_SHORT));
         ucLib.setLoadHints(QLibrary::ImprovedSearchHeuristics);
         if (!ucLib.load()) {
+#if 0
             qWarning() << "Unable to load library icuuc" << ucLib.errorString();
+#endif
             status = ErrorLoading;
             return false;
         }