]> Savannah Git Hosting - gnulib.git/commit
localeconv: Work around a mingw bug.
authorBruno Haible <bruno@clisp.org>
Thu, 27 Apr 2023 23:12:16 +0000 (01:12 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 27 Apr 2023 23:12:16 +0000 (01:12 +0200)
commitefb17ec15925db925088e801920a3df17b11ac49
tree10c5fc1d895d3737c340d67b8db3d2b366727e7d
parentfedd186a0b85045d2a1446abbb17eb9151bf0e11
localeconv: Work around a mingw bug.

* m4/localeconv.m4 (gl_FUNC_LOCALECONV): Test whether fields of type
'char' are filled correctly.
(gl_PREREQ_LOCALECONV): Test whether 'struct lconv' has the int_{p,n}_*
members.
* lib/localeconv.c (FIX_CHAR_VALUE): New macro.
(localeconv): Replace negative field values with CHAR_MAX.
* doc/posix-functions/localeconv.texi: Mention the mingw bug.
ChangeLog
doc/posix-functions/localeconv.texi
lib/localeconv.c
m4/localeconv.m4