summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-03-25 13:22:41 +0200
committerBruno Haible <bruno@clisp.org>2012-03-25 13:22:41 +0200
commit55b2f23f298f16802baf844d9dd150dba298fd00 (patch)
tree569ea407150020fb9ced69e28b947003b472de80 /modules/locale
parent0376ecb1fb640a545840596ea2c442fcb8b7ea16 (diff)
downloadgnulib-55b2f23f298f16802baf844d9dd150dba298fd00.tar.gz
locale: Provide a working 'struct lconv'.
* lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1. * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if 'struct lconv' does not even contain decimal_point. (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV. * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV. * tests/test-locale.c (main): Check that 'struct lconv' is complete. * doc/posix-headers/locale.texi: Mention the problems with 'struct lconv'. Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/locale b/modules/locale
index 4c66c84e24..09f2d67e23 100644
--- a/modules/locale
+++ b/modules/locale
@@ -35,6 +35,7 @@ locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
-e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
-e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \
-e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
+ -e 's|@''REPLACE_STRUCT_LCONV''@|$(REPLACE_STRUCT_LCONV)|g' \
-e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
-e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
-e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \