From a9d3ef2539f4abf62524bd2b2afb9ba2dc392660 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 23 Jun 2022 21:57:05 +0200 Subject: [PATCH] Fix date/time format unit test under FreeBSD Expect French date/time formats actually used there (at least under French 13), as they're different from the ones used by glibc under Linux. --- tests/intl/intltest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/intl/intltest.cpp b/tests/intl/intltest.cpp index 685ad5bb71..9f07ff2c82 100644 --- a/tests/intl/intltest.cpp +++ b/tests/intl/intltest.cpp @@ -182,6 +182,10 @@ void IntlTestCase::DateTimeFmtFrench() #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"; +#elif defined(__FREEBSD__) + 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"; #else static const char *FRENCH_DATE_FMT = "%d/%m/%Y"; static const char *FRENCH_LONG_DATE_FMT = "%A %d %B %Y";