1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-06-15 15:25:49 +00:00
Files
Paul Eggert 0eb6867f9c regex: fix glibc bug 20381
* lib/regcomp.c [!_LIBC]: Include localeinfo.h.
(re_set_fastmap): Remove icase arg, since it was not right
for initial bytes in multibyte locales.  Change ch arg to
be unsigned char so that callers need not cast.  All callers changed.
(re_set_fastmap_icase): New function.
(re_compile_fastmap_iter): Use it.
* modules/regex (Depends-on): Add localeinfo.
* tests/test-regex.c (main): Test for the bug.
2026-05-05 18:25:12 -07:00

81 lines
2.7 KiB
Plaintext

Description:
Regular expression matching.
This matches the current GNU C Library, so its interface differs from
the standalone GNU regex library which has long been decommissioned in
favor of the GNU C Library interface.
Files:
lib/regex.h
lib/regex.c
lib/regex_internal.c
lib/regex_internal.h
lib/regexec.c
lib/regcomp.c
m4/regex.m4
m4/mbstate_t.m4
Depends-on:
c99
extensions
ssize_t
vararrays
attribute [test $ac_use_included_regex = yes]
btoc32 [test $ac_use_included_regex = yes]
builtin-expect [test $ac_use_included_regex = yes]
c32_apply_type_test [test $ac_use_included_regex = yes]
c32_get_type_test [test $ac_use_included_regex = yes]
c32isalnum [test $ac_use_included_regex = yes]
c32rtomb [test $ac_use_included_regex = yes]
c32tolower [test $ac_use_included_regex = yes]
c32toupper [test $ac_use_included_regex = yes]
gettext-h [test $ac_use_included_regex = yes]
glibc-internal/dynarray [test $ac_use_included_regex = yes]
gnulib-i18n [test $ac_use_included_regex = yes]
intprops [test $ac_use_included_regex = yes]
langinfo-h [test $ac_use_included_regex = yes]
libc-config [test $ac_use_included_regex = yes]
limits-h [test $ac_use_included_regex = yes]
localeinfo [test $ac_use_included_regex = yes]
lock [test $ac_use_included_regex = yes]
malloc-gnu [test $ac_use_included_regex = yes]
mbrtoc32-regular [test $ac_use_included_regex = yes]
memcmp [test $ac_use_included_regex = yes]
memmove [test $ac_use_included_regex = yes]
mbsinit [test $ac_use_included_regex = yes]
nl_langinfo [test $ac_use_included_regex = yes]
bool [test $ac_use_included_regex = yes]
stdckdint-h [test $ac_use_included_regex = yes]
stdcountof-h [test $ac_use_included_regex = yes]
stdint-h [test $ac_use_included_regex = yes]
strncpy [test $ac_use_included_regex = yes]
verify [test $ac_use_included_regex = yes]
uchar-h [test $ac_use_included_regex = yes]
configure.ac:
gl_REGEX
gl_CONDITIONAL([GL_COND_OBJ_REGEX], [test $ac_use_included_regex = yes])
AM_COND_IF([GL_COND_OBJ_REGEX], [
gl_PREREQ_REGEX
])
Makefile.am:
if GL_COND_OBJ_REGEX
lib_SOURCES += regex.c
endif
Include:
<regex.h>
Link:
$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
$(MBRTOWC_LIB)
$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
$(LIBTHREAD)
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
License:
LGPLv2+
Maintainer:
all