summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlocale_mac.mm
diff options
context:
space:
mode:
authorMike FABIAN <maiku.fabian@gmail.com>2012-06-04 09:50:07 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-06 15:29:34 +0200
commit7dfee3ffc5129307217eb949698c5088a4561642 (patch)
treeb4cb26749d134f910bee5e8ad27c2ca76b024bf1 /src/corelib/tools/qlocale_mac.mm
parent66a0b8446dbd4d77e117353c9a55630249eccf7e (diff)
Use LC_MESSAGES instead of LC_NUMERIC in QSystemLocale::fallbackLocale()
commit b9790a04eeba664ecdf9ace24911094a71b5f0bd (https://codereview.qt-project.org/24304) introduced the problem that the country gets initialized from LC_NUMERIC and the language from LC_MESSAGES. For example, if LC_NUMERIC=ru_RU and LC_MESSAGE=fr_FR, then QLocale::system().name() returns "fr_RU". It is not nice to mix the values of two LC_ variables there. Therefore, revert this change and use LC_MESSAGES instead of LC_NUMERIC in QSystemLocale::fallbackLocale(). This was also suggested in the changelog of b9790a04 and it looks like a better way to fix the problem. Change-Id: I8fa6fec2b33e9f1f5a31c4b288503a658dad6d30 Reviewed-by: Denis Dzyubenko Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qlocale_mac.mm')
0 files changed, 0 insertions, 0 deletions