Until 2.7 glibc wrongly used periods instead of slashes as separators for the
French date format and the test accounted for this, breaking it with recent
glibc versions in which this bug was fixed.
Fix this by limiting the workaround to the old glibc versions only.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70629
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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