[Bug 207681] [libc] re-enable regex bayer-moore for the general multibyte case
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Jun 29 23:12:10 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207681
Yuri Pankov <yuripv at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yuripv at gmx.com
--- Comment #2 from Yuri Pankov <yuripv at gmx.com> ---
I *think* you are reading the code wrong, see how regexec.c includes engine.c
several times, after setting different defines. With MNAMES defined, which
defines the proper XMBRTOWC, we have a "#define matcher mmatcher", and
regexec.c has the following in regexec():
if (MB_CUR_MAX > 1)
return(mmatcher(g, string, nmatch, pmatch, eflags));
So in multibyte case, we are using the mmatcher(), which gets defined along
with MNAMES and proper XMBRTOWC pointing to xmbrtowc() and not
xmbrtowc_dummy().
The man page bit talks specifically about *word boundaries* in multibyte
locales, not general multibyte case.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list