Further improve caching of locale-specific data in wxNumberFormatter.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Jan 2011 15:06:09 +0000 (15:06 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 Jan 2011 15:06:09 +0000 (15:06 +0000)
commitd8d9844b299bb9c91a35025f87a079f04c30eae9
tree523271f182e38d1444e1cdfa2a086391c58fdd0f
parent343ef639a9c054e4d1883156b38a6b02fd629fd7
Further improve caching of locale-specific data in wxNumberFormatter.

Also update the cached data if setlocale() was called explicitly instead of
using wxLocale to change the locale because at least under Unix systems
calling setlocale() changes the result of wxLocale::GetInfo() and so the
result returned by wxNumberFormatter::GetDecimalSeparator() and
GetThousandsSeparatorIfUsed() could be inconsistent with the locale being
really used.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/numformatter.cpp