]> Savannah Git Hosting - gnulib.git/commit
dfa: avoid false match in non-UTF8 multibyte locales
authorJim Meyering <meyering@fb.com>
Sun, 27 Nov 2016 23:36:51 +0000 (15:36 -0800)
committerJim Meyering <meyering@fb.com>
Sun, 27 Nov 2016 23:36:51 +0000 (15:36 -0800)
commitbd6d66e502786df21d2dcaa7b473ee851f840aaa
treefff8e87f2d7f06ffc08e7f680fd2a2bc7e505542
parentb799aee9aafabafa0b979d55d9716380167f4b49
dfa: avoid false match in non-UTF8 multibyte locales

* lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
as "not supported" so that callers will resort to using regex-based
matcher.  This will surely hurt performance, but correctness trumps
performance here, and the affected locales are less and less relevant,
these days.  See grep's bug report https://bugs.gnu.org/24975.
ChangeLog
lib/dfa.c