summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-07-26 12:52:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-26 17:48:02 (GMT)
commit8212333012fa4e95373269526e4a702be7bb2d4b (patch)
treef371f7d010df609e8d7bab33dd55d5d10c9cd22a
parent7f814632f5d4d7af9f4225ece6039dbc44e03079 (diff)
downloadgit-8212333012fa4e95373269526e4a702be7bb2d4b.zip
git-8212333012fa4e95373269526e4a702be7bb2d4b.tar.gz
git-8212333012fa4e95373269526e4a702be7bb2d4b.tar.bz2
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 84780fd..667756c 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,