i18n: leave \n out of translated diffstat
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 26 Jul 2012 12:52:36 +0000 (19:52 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 Jul 2012 17:48:02 +0000 (10:48 -0700)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c

diff --git a/diff.c b/diff.c
index 84780fd5e641d9f1042f82863d1290f7ad8d92b5..667756c952dc8f056df5f4b45939139f90c43089 100644 (file)
--- 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,