Branch
Hash :
f4ad51ee
Author :
Date :
2023-07-26T14:50:00
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.
Description:
iswctype() function: test whether a wide character has a given property.
Files:
lib/iswctype.c
lib/iswctype-impl.h
m4/iswctype.m4
m4/wctype.m4
Depends-on:
wctype-h
configure.ac:
gl_FUNC_ISWCTYPE
gl_CONDITIONAL([GL_COND_OBJ_ISWCTYPE],
[test $HAVE_WCTYPE_T = 0 || test $GNULIBHEADERS_OVERRIDE_WINT_T = 1 || test $REPLACE_WCTYPE = 1])
gl_WCTYPE_MODULE_INDICATOR([iswctype])
Makefile.am:
if GL_COND_OBJ_ISWCTYPE
lib_SOURCES += iswctype.c
endif
Include:
<wctype.h>
License:
LGPLv2+
Maintainer:
all