CPPUNIT_TEST( Headers );
CPPUNIT_TEST( DateTimeFmtFrench );
CPPUNIT_TEST( DateTimeFmtC );
+ CPPUNIT_TEST( IsAvailable );
CPPUNIT_TEST_SUITE_END();
void Domain();
void Headers();
void DateTimeFmtFrench();
void DateTimeFmtC();
+ void IsAvailable();
wxLocale *m_locale;
m_locale->GetInfo(wxLOCALE_TIME_FMT) );
}
+void IntlTestCase::IsAvailable()
+{
+ const wxString origLocale(setlocale(LC_ALL, NULL));
+
+ // Calling IsAvailable() shouldn't change the locale.
+ wxLocale::IsAvailable(wxLANGUAGE_ENGLISH);
+
+ CPPUNIT_ASSERT_EQUAL( origLocale, setlocale(LC_ALL, NULL) );
+}
+
#endif // wxUSE_INTL