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

Re: [PATCH] i18n: leave \n out of translated diffstat

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 26, 2012, 17:46 UTC
Message-ID
<7va9ym8lf1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1343307156-16528-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
Show 11 quoted lines
> diff --git a/diff.c b/diff.c
> index 62cbe14..95706a5 100644
> --- a/diff.c
> +++ b/diff.c
> @@ -1397,7 +1397,7 @@ int print_stat_summary(FILE *fp, int files, int insertions, int deletions)
>  
>  	if (!files) {
>  		assert(insertions == 0 && deletions == 0);
> -		return fputs(_(" 0 files changed\n"), fp);
> +		return fprintf(fp, "%s\n", _(" 0 files changed"));
>  	}
Good.
Previous: Nguyễn Thái Ngọc Duy
Message 2 of 2 in “i18n: leave \n out of translated diffstat”
  1. i18n: leave \n out of translated diffstatNguyễn Thái Ngọc Duy, Jul 26, 2012
  2. Junio C HamanoJul 26, 2012

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.