locale: Provide a working 'struct lconv'.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Mar 2012 11:22:41 +0000 (13:22 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Mar 2012 11:22:41 +0000 (13:22 +0200)
commit55b2f23f298f16802baf844d9dd150dba298fd00
tree569ea407150020fb9ced69e28b947003b472de80
parent0376ecb1fb640a545840596ea2c442fcb8b7ea16
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>.
ChangeLog
doc/posix-headers/locale.texi
lib/locale.in.h
m4/locale_h.m4
modules/locale
tests/test-locale.c