Re: [PATCH v12 3/3] grep: fix an edge case concerning ascii patterns and UTF-8 data
- From
Hamza Mahfooz <someguy@effective-light.com>
- Date
- Oct 12, 2021, 23:01 UTC
- Message-ID
- <GYZV0R.L35VU8UQBN4L2@effective-light.com>
- In-Reply-To
- <87a6jjlzz1.fsf@evledraar.gmail.com>
On Sat, Oct 9 2021 at 03:37:58 AM +0200, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> Are there cases where my "utf8_all_the_things" POC patch would have > turned on PCRE2_UTF, but yours doesn't? IOW is there a 1=1 mapping > still > between the encoding mode log/revision.c thinks it's in & PCRE2_UTF?
As far as I can tell, the only place where ignore_locale is mutated is in setup_revisions(), so there should be a 1=1 mapping.