From: Nguyễn Thái Ngọc Duy Date: Thu, 26 Jul 2012 12:52:36 +0000 (+0700) Subject: i18n: leave \n out of translated diffstat X-Git-Tag: v1.7.12-rc2~9^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8212333012fa4e95373269526e4a702be7bb2d4b;p=git.git i18n: leave \n out of translated diffstat 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 Signed-off-by: Junio C Hamano --- diff --git a/diff.c b/diff.c index 84780fd5e..667756c95 100644 --- a/diff.c +++ b/diff.c @@ -1329,7 +1329,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,