Merge branch 'ui-locale'

Add wxUILocale class providing functionality which can be implemented
portably for all major platforms, including macOS, and doesn't force
the change of the global C locale, unlike wxLocale.

See https://github.com/wxWidgets/wxWidgets/pull/2464
This commit is contained in:
Vadim Zeitlin
2021-08-26 15:49:57 +02:00
41 changed files with 1978 additions and 655 deletions

View File

@@ -33,6 +33,8 @@
#include "wx/stopwatch.h"
#endif
#include "wx/private/localeset.h"
#include "textentrytest.h"
#include "testableframe.h"
#include "asserthelper.h"
@@ -295,7 +297,7 @@ void TextCtrlTestCase::StreamInput()
#ifndef __WXOSX__
{
// Ensure we use decimal point and not a comma.
LocaleSetter setCLocale("C");
wxCLocaleSetter setCLocale;
*m_text << "stringinput"
<< 10