Numeric validator tests rely on wxLocale::GetInfo() returning the decimal
point and calling setlocale() is not enough to ensure this under MSW, we must
use wxLocale for this currently.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66865
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void NumValidatorTestCase::TransferFloat()
{
// We need a locale with point as decimal separator.
- CLocaleSetter cloc;
+ wxLocale loc(wxLANGUAGE_ENGLISH_UK, wxLOCALE_DONT_LOAD_DEFAULT);
float value = 0;
wxFloatingPointValidator<float> valFloat(3, &value);
void NumValidatorTestCase::NoTrailingZeroes()
{
// We need a locale with point as decimal separator.
- CLocaleSetter cloc;
+ wxLocale loc(wxLANGUAGE_ENGLISH_UK, wxLOCALE_DONT_LOAD_DEFAULT);
double value = 1.2;
m_text->SetValidator(