Add a trivial test for setting default locale
Initializing wxLocale using wxLANGUAGE_DEFAULT should work, unless LC_ALL is explicitly set to an invalid value.
This commit is contained in:
@@ -226,4 +226,11 @@ void IntlTestCase::IsAvailable()
|
|||||||
CPPUNIT_ASSERT_EQUAL( origLocale, setlocale(LC_ALL, NULL) );
|
CPPUNIT_ASSERT_EQUAL( origLocale, setlocale(LC_ALL, NULL) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_CASE("wxLocale::Default", "[locale]")
|
||||||
|
{
|
||||||
|
wxLocale loc;
|
||||||
|
|
||||||
|
REQUIRE( loc.Init(wxLANGUAGE_DEFAULT, wxLOCALE_DONT_LOAD_DEFAULT) );
|
||||||
|
}
|
||||||
|
|
||||||
#endif // wxUSE_INTL
|
#endif // wxUSE_INTL
|
||||||
|
Reference in New Issue
Block a user