diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2022-05-23 10:54:39 +0200 |
|---|---|---|
| committer | Peter Eisentraut <peter@eisentraut.org> | 2022-05-23 10:54:39 +0200 |
| commit | da1c0acd0a61eb8c1d62725ded9c219e783cc6a2 (patch) | |
| tree | 949cfd6508ef0ae84a63da94c9cadf82c686c18d /src/bin/pg_upgrade/util.c | |
| parent | 09ed73f1a4af5cdcbe9725727822e54bd8e9f743 (diff) | |
pg_upgrade: Tweak translatable strings
"\r" (for progress output) must not be inside a translatable string
(gettext gets upset).
In passing, move the minimum supported version number to a separate
argument, so that we don't have to retranslate this string every year
now.
Diffstat (limited to 'src/bin/pg_upgrade/util.c')
| -rw-r--r-- | src/bin/pg_upgrade/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/pg_upgrade/util.c b/src/bin/pg_upgrade/util.c index 9edfe7c3605..1a328b42700 100644 --- a/src/bin/pg_upgrade/util.c +++ b/src/bin/pg_upgrade/util.c @@ -47,7 +47,10 @@ end_progress_output(void) * nicely. */ if (log_opts.isatty) - pg_log(PG_REPORT, "\r%-*s", MESSAGE_WIDTH, ""); + { + printf("\r"); + pg_log(PG_REPORT, "%-*s", MESSAGE_WIDTH, ""); + } else if (log_opts.verbose) pg_log(PG_REPORT, "%-*s", MESSAGE_WIDTH, ""); } |
