summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-08-10 19:41:45 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-08-10 19:41:45 (GMT)
commitc4416d5a2ca4aa4eb2eac90b207118cb267d0fe1 (patch)
treecc6c831e249ae3b6f8783b860cb87ca145283dd5 /Modules
parent13f4ea25d4d00704bd21daf067cdee1b362566ab (diff)
downloadcpython-c4416d5a2ca4aa4eb2eac90b207118cb267d0fe1.zip
cpython-c4416d5a2ca4aa4eb2eac90b207118cb267d0fe1.tar.gz
cpython-c4416d5a2ca4aa4eb2eac90b207118cb267d0fe1.tar.bz2
_DATE_FMT does not always accompany CODESET.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_localemodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index 04cd873..3f11054 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 */