From: Martin v. Löwis Date: Fri, 10 Aug 2001 19:41:45 +0000 (+0000) Subject: _DATE_FMT does not always accompany CODESET. X-Git-Tag: v2.2a3~668 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4416d5a2ca4aa4eb2eac90b207118cb267d0fe1;p=thirdparty%2FPython%2Fcpython.git _DATE_FMT does not always accompany CODESET. --- diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 04cd87337f5a..3f1105446300 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -555,6 +555,9 @@ init_locale(void) ADDINT(ALT_DIGITS); ADDINT(YESEXPR); ADDINT(NOEXPR); +#endif +#ifdef _DATE_FMT + /* This is not available in all glibc versions that have CODESET. */ ADDINT(_DATE_FMT); #endif #endif /* HAVE_LANGINFO_H */