glibc/wctype
Joseph Myers 9dd6b7799a Fix regex wctype namespace (bug 18495).
regcomp brings in references to various wctype functions that aren't
in all the standards including regcomp.  This patch fixes this in the
usual way by using the __* versions of these functions (which already
exist, but some didn't have libc_hidden_proto / libc_hidden_def
before).

Tested for x86_64 and x86 (testsuite, and that installed stripped
shared libraries are unchanged by the patch).  (Other wide character
function references from the regex code mean that this patch by itself
doesn't fix any XFAILed linknamespace test failures; further patches
will be needed for that.)

	[BZ #18495]
	* wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
	(__iswlower): Likewise.
	* include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
	(__iswlower): Likewise.
	* posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
	instead of towlower.
	* posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
	instead of iswlower.  Call __towupper instead of towupper.
	* posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
	instead of iswalnum.
2015-06-05 20:04:47 +00:00
..
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions
bug-wctypeh.c * wctype/wctype.h: Get wint_t definition directly from <stddef.h>. 2008-12-29 23:21:21 +00:00
iswctype.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
iswctype_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test_wcfuncs.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
test_wctype.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
towctrans.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
towctrans_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wcfuncs.c Fix regex wctype namespace (bug 18495). 2015-06-05 20:04:47 +00:00
wcfuncs_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wchar-lookup.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wctrans.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wctrans_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wctype.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wctype.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
wctype_l.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00