Changeset 623


Ignore:
Timestamp:
Mar 3, 2010, 9:22:55 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: Ignore the system locale object by default as it is known to have bogus definitions for some of the regional settings and use the Qt internal locale database instead (this behavior can be overridden using environment variables, see README.OS2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/corelib/tools/qlocale.cpp

    r622 r623  
    987987QVariant QSystemLocale::query(QueryType type, QVariant in = QVariant()) const
    988988{
     989    static bool ignoreSysLocaleObject =
     990        getenv("QT_PM_NO_SYSTEM_LOCALE") || !getenv("QT_PM_SYSTEM_LOCALE");
     991
     992    if (ignoreSysLocaleObject)
     993        return QVariant();
     994
    989995    static LocaleItem dayNames[] = {
    990996        // 0 ... 6 (Mon - Sun)
Note: See TracChangeset for help on using the changeset viewer.