QLocale: Fix infinite loop in error case
QBBSystemLocaleData emits qwarnings when it fails to open or read a pps object.
If the user code installs a message handler that will invoke QLocale API again
(i.e QDate, QDateTime, ...) then this will cause an infinite loop, where the
QBBSystemLocaleData ctor() is calling itself.
This patch logs the QBBSystemLocale's warnings to stderr and
skips the Qt message handler.
Cherry-picked: qtbase/
1e446fc99167a992b1a8342168b6254f43b097fe
Change-Id: Iff99973532e0cba752854e325d0cd987765547d9
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>