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 -- 2.29.2.222.g5d2a92d10f8