Content-Length: 257375 | pFad | http://github.com/postgrespro/postgres/commit/1f94bec7a9e3e6b4fa5468236cf531fec16d1093

FF Silence gettext warning about '\r' escape sequence in translatable st… · postgrespro/postgres@1f94bec · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1f94bec7a9e3e6b4fa5468236cf531fec16d1093

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy