X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e3778b4d9c7eebc39f496a9dd055638e06fb9140..32753ae949d861ddaf7c66f4c483bc57493c6c6c:/tests/intl/intltest.cpp?ds=sidebyside diff --git a/tests/intl/intltest.cpp b/tests/intl/intltest.cpp index d747b7aa26..d821e963cf 100644 --- a/tests/intl/intltest.cpp +++ b/tests/intl/intltest.cpp @@ -117,7 +117,7 @@ void IntlTestCase::Headers() CPPUNIT_ASSERT_EQUAL( "YEAR-MO-DA HO:MI+ZONE", m_locale->GetHeaderValue("PO-Revision-Date") ); CPPUNIT_ASSERT_EQUAL( "Vadim Zeitlin ", m_locale->GetHeaderValue("Last-Translator") ); CPPUNIT_ASSERT_EQUAL( "1.0", m_locale->GetHeaderValue("MIME-Version") ); - CPPUNIT_ASSERT_EQUAL( "text/plain; charset=iso-8859-1", m_locale->GetHeaderValue("Content-Type") ); + CPPUNIT_ASSERT_EQUAL( "text/plain; charset=utf-8", m_locale->GetHeaderValue("Content-Type") ); CPPUNIT_ASSERT_EQUAL( "8bit", m_locale->GetHeaderValue("Content-Transfer-Encoding") ); // check that it fails with a bogus domain: @@ -152,9 +152,13 @@ void IntlTestCase::DateTimeFmtFrench() return; #ifdef __GLIBC__ - // glibc also uses dots for French locale separator for some reason (the - // standard format uses slashes) + // Versions of glibc up to 2.7 wrongly used periods for French locale + // separator. +#if __GLIBC__ > 2 || __GLIBC_MINOR__ >= 8 + static const char *FRENCH_DATE_FMT = "%d/%m/%Y"; +#else static const char *FRENCH_DATE_FMT = "%d.%m.%Y"; +#endif static const char *FRENCH_LONG_DATE_FMT = "%a %d %b %Y"; static const char *FRENCH_DATE_TIME_FMT = "%a %d %b %Y %H:%M:%S %Z"; #else