git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] i18n: leave \n out of translated diffstat
@ 2012-06-24 12:41 Nguyễn Thái Ngọc Duy
  2012-06-24 12:41 ` [PATCH 2/2] Add C_LOCALE_OUTPUT prereq to test cases that require English text matching Nguyễn Thái Ngọc Duy
  2012-06-24 16:04 ` [PATCH 1/2] i18n: leave \n out of translated diffstat Jonathan Nieder
  0 siblings, 2 replies; 11+ messages in thread
From: Nguyễn Thái Ngọc Duy @ 2012-06-24 12:41 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Jonathan Niedier,
	Nguyễn Thái Ngọc Duy

GETTEXT_POISON scrapes everything in translated strings, including \n.
t4205.12 however needs this \n in matching the end result. Keep this
\n out of translation to make t4205.12 happy.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 diff.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/diff.c b/diff.c
index 1a594df..923b6aa 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"));
 	}
 
 	strbuf_addf(&sb,
-- 
1.7.8

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-06-25 11:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-24 12:41 [PATCH 1/2] i18n: leave \n out of translated diffstat Nguyễn Thái Ngọc Duy
2012-06-24 12:41 ` [PATCH 2/2] Add C_LOCALE_OUTPUT prereq to test cases that require English text matching Nguyễn Thái Ngọc Duy
2012-06-24 16:28   ` Jonathan Nieder
2012-06-25 11:32     ` Nguyen Thai Ngoc Duy
2012-06-25 11:39       ` Jonathan Nieder
2012-06-25 11:45       ` Nguyen Thai Ngoc Duy
2012-06-25 11:53         ` Jonathan Nieder
2012-06-24 16:04 ` [PATCH 1/2] i18n: leave \n out of translated diffstat Jonathan Nieder
2012-06-25  4:24   ` Junio C Hamano
2012-06-25 11:17     ` Nguyen Thai Ngoc Duy
2012-06-25 11:33       ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).