only Linux/glibc seem to use periods as date separator in French locale

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-03-30 21:14:09 +00:00
parent d19fe998c8
commit b9d2203419

View File

@ -146,7 +146,15 @@ void IntlTestCase::DateTimeFmt()
if ( !m_locale )
return;
CompareFormats( "%d.%m.%Y", m_locale->GetInfo(wxLOCALE_SHORT_DATE_FMT) );
#ifdef __GLIBC__
// glibc also uses dots for French locale separator for some reason (the
// standard format uses slashes)
static const char *FRENCH_DATE_FMT = "%d.%m.%y";
#else
static const char *FRENCH_DATE_FMT = "%d/%m/%y";
#endif
CompareFormats( FRENCH_DATE_FMT, m_locale->GetInfo(wxLOCALE_SHORT_DATE_FMT) );
CompareFormats( "%a %d %b %Y", m_locale->GetInfo(wxLOCALE_LONG_DATE_FMT) );
CompareFormats( "%a %d %b %Y %H:%M:%S %Z",
m_locale->GetInfo(wxLOCALE_DATE_TIME_FMT) );