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

Re: [PATCH v2] run-command: report exec failure

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 13, 2018, 08:17 UTC
Message-ID
<xmqqzht9et8h.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20181213080825.GB12132@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 13 quoted lines
> On Thu, Dec 13, 2018 at 03:36:53AM +0900, Junio C Hamano wrote:
>
>>  test_expect_success 'start_command reports ENOENT (slash)' '
>> -	test-tool run-command start-command-ENOENT ./does-not-exist
>> +	test-tool run-command start-command-ENOENT ./does-not-exist 2>err &&
>> +	test_i18ngrep "\./does-not-exist" err
>>  '
>
> I thought at first you could use "grep" here, since we know that the
> name of the file would appear untranslated. But I think the way
> GETTEXT_POISON works, it actually eats the whole string, including
> placeholders (which IMHO is a failing of GETTEXT_POISON, since no real
> translation would do that, but not worth caring too much about).

When Ævar's dynamic gettext poison topic was discussed, there was an idea or two floated for a possible follow-up to introduce a true "fake translation", replacing e with é, n with ñ, etc., while keeping the printf formaters intact. When that comes, we should be able to use grep and that would make the result more robust than the current test_i18ngrep that always pretends to have seen a match, but that hasn't happened yet.

Previous: Jeff KingNext: Johannes Schindelin
Message 9 of 10 in “run-command: report exec failure”
  1. run-command: report exec failureJunio C Hamano, Dec 11, 2018
  2. Jeff KingDec 11, 2018
  3. Johannes SchindelinDec 11, 2018
  4. Junio C HamanoDec 11, 2018
  5. John PassaroDec 12, 2018
  6. Jeff KingDec 13, 2018
  7. run-command: report exec failureJunio C Hamano, Dec 12, 2018
  8. Jeff KingDec 13, 2018
  9. Junio C HamanoDec 13, 2018
  10. Johannes SchindelinDec 13, 2018

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.