]> Savannah Git Hosting - gnulib.git/commit
wctype: Work around wctype bug on mingw.
authorBruno Haible <bruno@clisp.org>
Wed, 26 Jul 2023 12:50:00 +0000 (14:50 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 26 Jul 2023 12:50:00 +0000 (14:50 +0200)
commitf4ad51ee78a99f86110a6fe0fc8e319b7500f645
tree22859a0ee9ba85c0567e8a3335062f42549ae140
parent1a602613384e6dcec05eb693bc63726600520cd7
wctype: Work around wctype bug on mingw.

* lib/wctype.in.h (rpl_wctype_t, wctype_t, GNULIB_defined_wctype_t):
Define if REPLACE_WCTYPE is 1.
(wctype): Consider REPLACE_WCTYPE.
(iswctype): Override also if REPLACE_WCTYPE is 1.
* lib/iswctype.c: If GNULIB_defined_wctype_t is defined, use the
function-pointer based implementation.
* m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize REPLACE_WCTYPE.
* m4/wctype.m4 (gl_FUNC_WCTYPE): Define through AC_DEFUN_ONCE. Test
whether wctype supports the "blank" character class. Set REPLACE_WCTYPE
if not.
* m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Require gl_FUNC_WCTYPE.
* modules/wctype (Status, Notice): Remove.
(Depends-on): Add iswctype. Consider REPLACE_WCTYPE.
(configure.ac): Consider REPLACE_WCTYPE.
* modules/iswctype (Status, Notice): Remove.
(Files): Add m4/wctype.m4.
(configure.ac): Override also if REPLACE_WCTYPE is 1.
* modules/wctype-h (Makefile.am): Substitute REPLACE_WCTYPE.
* doc/posix-functions/wctype.texi: Mention the mingw bug.
ChangeLog
doc/posix-functions/wctype.texi
lib/iswctype.c
lib/wctype.in.h
m4/iswctype.m4
m4/wctype.m4
m4/wctype_h.m4
modules/iswctype
modules/wctype
modules/wctype-h