X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71f44b1bc4277d7d6f6ef199c0f4f3d1bd219781..37d8aa5b686ec3b48aa9a6c480dd06738c5a9e64:/tests/intl/intltest.cpp diff --git a/tests/intl/intltest.cpp b/tests/intl/intltest.cpp index e1bea25e35..d821e963cf 100644 --- a/tests/intl/intltest.cpp +++ b/tests/intl/intltest.cpp @@ -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