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

Re: [PATCH] Makefile: fix default regex settings on Darwin

From
David Aguilar <davvid@gmail.com>
Date
May 11, 2013, 07:55 UTC
Message-ID
<CAJDDKr5t+hVE-TpNbVWmLL4VFq-NGjuVhcyPG=quaf6icz+E4Q@mail.gmail.com>
In-Reply-To
<20130511070423.GG3394@elie>
On Sat, May 11, 2013 at 12:04 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 35 quoted lines
> David Aguilar wrote:
>
>> expecting success:
>> # if this test fails, re-build git with NO_REGEX=1
>> test-regex
>>
>> fatal: regex bug confirmed: re-build git with NO_REGEX=1
>
> Thanks.  Gah.  That means that regcomp() with REG_NEWLINE is letting
>
>         [^={} \t]+
>
> match the newline in
>
>         ={}\nfred
>
> despite the POSIX requirement
>
>         A <newline> in string shall not be matched by a period outside
>         a bracket expression or by any form of a non-matching list
>
> where
>
>         A non-matching list expression begins with a <circumflex> ('^')
>         and specifies a list that shall match any single-character
>         collating element except for the expressions represented in
>         the list after the leading <circumflex>.
>
> and if I understand you correctly, this is a regression in Apple
> libc. :(
>
> With the commit message modified to mention the "fatal: regex bug
> confirmed: re-build git with NO_REGEX=1" and uname -a output,
>
> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Thanks. I can adjust the commit message and re-roll to make this patch 1/3.
> Do you know if this has been reported to Apple and
> openradar.appspot.com?

I checked and nope, there are no bug reports. I tried to submit one by creating a "new radar" but that page said to go to bugreport.apple.com.

I tried to login there but after entering my credentials I got, "An error has occurred. Please report the error to Apple Inc. by emailing the error detail to devbugs@apple.com." Oh bother ;-)

I refreshed the page and finally got in.  I submitted a bug.. Problem # 13868200

I hop on this laptop to test for cross-platform issues (I'm a Linux user myself ;-) and it's been pretty good at finding 'em. -- David

Previous: Jonathan Nieder
Message 5 of 5 in “Makefile: fix default regex settings on Darwin”
  1. Makefile: fix default regex settings on DarwinDavid Aguilar, May 11, 2013
  2. Jonathan NiederMay 11, 2013
  3. David AguilarMay 11, 2013
  4. Jonathan NiederMay 11, 2013
  5. David AguilarMay 11, 2013

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.