aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-07-26 19:52:36 +0700
committerJunio C Hamano <gitster@pobox.com>2012-07-26 10:48:02 -0700
commit8212333012fa4e95373269526e4a702be7bb2d4b (patch)
treef371f7d010df609e8d7bab33dd55d5d10c9cd22a
parent7f814632f5d4d7af9f4225ece6039dbc44e03079 (diff)
downloadgit-8212333012fa4e95373269526e4a702be7bb2d4b.tar.gz
git-8212333012fa4e95373269526e4a702be7bb2d4b.tar.xz
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 <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--diff.c2
1 files changed, 1 insertions, 1 deletions
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,