Fix wxLocale::GetInfo() unit test under Cygwin

Use the French date format expected by Cygwin CRT which differs from the
one used by MSVC.

See #23782.

(cherry picked from commit 15d7aaaa50c0e815a3d3b94dece365eaffe6653c)
This commit is contained in:
Carlo Bramini 2023-08-18 15:00:39 +02:00 committed by Vadim Zeitlin
parent 423d5ee7bb
commit f76ba198eb

View File

@ -188,6 +188,10 @@ void IntlTestCase::DateTimeFmtFrench()
static const char *FRENCH_DATE_FMT = "%d.%m.%Y";
static const char *FRENCH_LONG_DATE_FMT = "%a %e %b %Y";
static const char *FRENCH_DATE_TIME_FMT = "%a %e %b %X %Y";
#elif defined(__CYGWIN__)
static const char *FRENCH_DATE_FMT = "%d/%m/%Y";
static const char *FRENCH_LONG_DATE_FMT = "%a %e %b %Y";
static const char *FRENCH_DATE_TIME_FMT = "%a %e %b %Y %H:%M:%S";
#else
static const char *FRENCH_DATE_FMT = "%d/%m/%Y";
static const char *FRENCH_LONG_DATE_FMT = "%A %d %B %Y";