+void XLocaleTestCase::PreserveLocale()
+{
+ // Test that using locale functions doesn't change the global C locale.
+ const wxString origLocale(setlocale(LC_ALL, NULL));
+
+ wxStrtod_l(wxT("1.234"), NULL, wxCLocale);
+
+ CPPUNIT_ASSERT_EQUAL( origLocale, setlocale(LC_ALL, NULL) );
+}
+