git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] grep/pcre2: limit the instances in which UTF mode is enabled

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 18, 2021, 20:53 UTC
Message-ID
<xmqqo86hw5gb.fsf@gitster.g>
In-Reply-To
<YZasJWuysic3OWS1@carlos-mbp.lan>
Carlo Marcelo Arenas Belón <carenas@gmail.com> writes:
Show 8 quoted lines
> I have to admit that adding to a complex condition might be obscuring
> some other edge case, and indeed the fact the test passed even without
> this fix is concerning.
>
> From my reading of what Ævar suggested originally[1], it would seem that
> the new is_log condition should be on an branch of its own, and more code
> should be needed to make sure the contents we are going to use are indeed
> utf8 by the time it hits pcre2_*match() before setting it.

At least, let's not consider pursuing this approach to pile on more iffy code on top of broken code in the release. Unless I hear otherwise, I am leaning to revert the whole three patches of the original series and call it a day for both 'maint' (for 2.34.1) and 'master'.

Thanks.
Previous: Carlo Marcelo Arenas Belón
Message 8 of 8 in “grep/pcre2: limit the instances in which UTF mode is enabled”
  1. 1/2 grep/pcre2: limit the instances in which UTF mode is enabledHamza Mahfooz, Nov 18, 2021
  2. 2/2 ci: add a job for PCRE2Hamza Mahfooz, Nov 18, 2021
  3. 2/2 ci: add a job for PCRE2Hamza Mahfooz, Nov 18, 2021
  4. Ævar Arnfjörð BjarmasonNov 18, 2021
  5. Hamza MahfoozNov 22, 2021
  6. Carlo ArenasNov 18, 2021
  7. Carlo Marcelo Arenas BelónNov 18, 2021
  8. Junio C HamanoNov 18, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.