Re: grep: fix multibyte regex handling under macOS (1819ad327b7a1f19540a819813b70a0e8a7f798f)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 1, 2023, 18:54 UTC
- Message-ID
- <xmqqsffpz05o.fsf@gitster.g>
- In-Reply-To
- <CANgJU+WZR56xG+KL3P053aD_qTh+rBhZ01mqNajg2qRt_+RNMA@mail.gmail.com>
demerphq <demerphq@gmail.com> writes:
> ... I saw some discussion > recently that the mac regex engine doesn't play nicely in certain > ways, but i dont recollect the details.
There was a discussion on BRE having and not having GNU-like extension on macOS, in this thread
https://lore.kernel.org/git/26a0d4ca-3d97-ace4-1a1f-92b1ee6715a6@web.de/
The patch we ended up using avoids touching the behaviour with ERE, as REG_ENHANCED on macOS affects REG_EXTENDED, but the issue we were looking at in the thread was about BRE.