Skip to content

Commit 1f94bec

Browse files
committed
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
1 parent 442663f commit 1f94bec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_rewind/logging.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ progress_report(bool force)
134134
snprintf(fetch_size_str, sizeof(fetch_size_str), INT64_FORMAT,
135135
fetch_size / 1024);
136136

137-
pg_log(PG_PROGRESS, "%*s/%s kB (%d%%) copied\r",
137+
pg_log(PG_PROGRESS, "%*s/%s kB (%d%%) copied",
138138
(int) strlen(fetch_size_str), fetch_done_str, fetch_size_str,
139139
percent);
140+
printf("\r");
140141
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy