Petr, But I found what triggers the misbehaviour of your code. It's the > PCRE2_CASELESS option. Without it it work's like a charm. >
Yes, I wrote that in my original mail: Without the caseless option there is no problem. But I need this option. So, you can confirm that case-insensitive text search in the binary file I provided does not work when using PCRE2_MATCH_INVALID_UTF? That's a bug, then, isn't it? Thomas -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev