mbox series

[v4,0/2] grep: better support invalid UTF-8 haystacks

Message ID 20210124114855.13036-1-avarab@gmail.com (mailing list archive)
Headers show
Series grep: better support invalid UTF-8 haystacks | expand

Message

Ævar Arnfjörð Bjarmason Jan. 24, 2021, 11:48 a.m. UTC
Changes since v2: Dropped mid-series unrelated refactoring. Will leave
it to a future patch series to simplify/move/refactor this code more
generally.

Ævar Arnfjörð Bjarmason (2):
  grep/pcre2 tests: don't rely on invalid UTF-8 data test
  grep/pcre2: better support invalid UTF-8 haystacks

 Makefile                        |  1 +
 grep.c                          |  8 ++++-
 grep.h                          |  4 +++
 t/helper/test-pcre2-config.c    | 12 ++++++++
 t/helper/test-tool.c            |  1 +
 t/helper/test-tool.h            |  1 +
 t/t7812-grep-icase-non-ascii.sh | 53 ++++++++++++++++++++++++++++-----
 7 files changed, 72 insertions(+), 8 deletions(-)
 create mode 100644 t/helper/test-pcre2-config.c

Range-diff:
-:  ---------- > 1:  699bb6b324 grep/pcre2 tests: don't rely on invalid UTF-8 data test
-:  ---------- > 2:  e4807d6879 grep/pcre2: better support invalid UTF-8 haystacks