diff options
author | Fujii Masao | 2015-04-13 04:30:59 +0000 |
---|---|---|
committer | Fujii Masao | 2015-04-13 04:30:59 +0000 |
commit | 1f94bec7a9e3e6b4fa5468236cf531fec16d1093 (patch) | |
tree | 07b2f585a1119e0ee91080ca053e8a68e523f8fc | |
parent | 442663f133f1caec51919402463e6e31362baee3 (diff) |
Silence gettext warning about '\r' escape sequence in translatable string.
gettext was unhappy about the commit b216ad7 because it revealed
the problem that internationalized messages may contain '\r' escape
sequence in pg_rewind. This commit moves '\r' to a separate printf() call.
Michael Paquier, bug reported by Peter Eisentraut
-rw-r--r-- | src/bin/pg_rewind/logging.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/pg_rewind/logging.c b/src/bin/pg_rewind/logging.c index aba12d842ef..3e2dc76c583 100644 --- a/src/bin/pg_rewind/logging.c +++ b/src/bin/pg_rewind/logging.c @@ -134,7 +134,8 @@ progress_report(bool force) snprintf(fetch_size_str, sizeof(fetch_size_str), INT64_FORMAT, fetch_size / 1024); - pg_log(PG_PROGRESS, "%*s/%s kB (%d%%) copied\r", + pg_log(PG_PROGRESS, "%*s/%s kB (%d%%) copied", (int) strlen(fetch_size_str), fetch_done_str, fetch_size_str, percent); + printf("\r"); } |