Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f94bec

Browse files
committed
Silence gettext warning about '\r' escape sequence in translatable string.
gettext was unhappy about the commitb216ad7 because it revealedthe problem that internationalized messages may contain '\r' escapesequence in pg_rewind. This commit moves '\r' to a separate printf() call.Michael Paquier, bug reported by Peter Eisentraut
1 parent442663f commit1f94bec

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)

[8]ページ先頭

©2009-2025 Movatter.jp