]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/xlocale/xlocale.cpp
Removing more CodeWarrior project files.
[wxWidgets.git] / tests / xlocale / xlocale.cpp
index 157afad2b359bd14922b99acca64cda4e20adfb4..07172bb09ccb45156f6bdce5ffded7b806a59ef8 100644 (file)
@@ -65,8 +65,11 @@ void XLocaleTestCase::TestCtor()
     CPPUNIT_ASSERT( wxXLocale("C").IsOk() );
 #ifdef wxHAS_XLOCALE_SUPPORT
     CPPUNIT_ASSERT( wxXLocale(wxLANGUAGE_FRENCH).IsOk() );
-    CPPUNIT_ASSERT( wxXLocale("fr_FR").IsOk() );
+#ifdef __WXMSW__
     CPPUNIT_ASSERT( wxXLocale("french").IsOk() );
+#else
+    CPPUNIT_ASSERT( wxXLocale("fr_FR").IsOk() );
+#endif
 #endif
     CPPUNIT_ASSERT( !wxXLocale("bloordyblop").IsOk() );
 }
@@ -169,13 +172,15 @@ void XLocaleTestCase::TestCtypeFunctions()
     TestCtypeFunctionsWith(wxCLocale);
 
 #ifdef wxHAS_XLOCALE_SUPPORT
-    wxXLocale locFR("fr_FR");
+    wxXLocale locFR(wxLANGUAGE_FRENCH);
+    CPPUNIT_ASSERT( locFR.IsOk() ); // doesn't make sense to continue otherwise
+
     TestCtypeFunctionsWith(locFR);
 
-    CPPUNIT_ASSERT( wxIsalpha_l('é', locFR) );
-    CPPUNIT_ASSERT( wxIslower_l('é', locFR) );
-    CPPUNIT_ASSERT( !wxIslower_l('É', locFR) );
-    CPPUNIT_ASSERT( wxIsupper_l('É', locFR) );
+    CPPUNIT_ASSERT( wxIsalpha_l('\xe9', locFR) );
+    CPPUNIT_ASSERT( wxIslower_l('\xe9', locFR) );
+    CPPUNIT_ASSERT( !wxIslower_l('\xc9', locFR) );
+    CPPUNIT_ASSERT( wxIsupper_l('\xc9', locFR) );
 #endif
 }