diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-04-09 14:01:33 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-04-09 14:01:33 +0900 |
commit | deca6ac136f4cd09280b3385dc5de3e8ec57e9ba (patch) | |
tree | aec4c32e439fa474b4782987e76697eba23ab53b | |
parent | f4083c49751018ae2140de8bf752b8d60485a6ca (diff) | |
download | postgresql-deca6ac136f4cd09280b3385dc5de3e8ec57e9ba.tar.gz postgresql-deca6ac136f4cd09280b3385dc5de3e8ec57e9ba.zip |
Add missing set_pglocale_pgservice() for pg_walsummary and pg_combinebackup
These calls are required to make both tools work with NLS.
Author: Kyotaro Horiguchi
Discussion: https://postgr.es/m/20240408.162702.183779935636035593.horikyota.ntt@gmail.com
-rw-r--r-- | src/bin/pg_combinebackup/pg_combinebackup.c | 1 | ||||
-rw-r--r-- | src/bin/pg_walsummary/pg_walsummary.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c index 1b07ca3fb64..2788c78fdd4 100644 --- a/src/bin/pg_combinebackup/pg_combinebackup.c +++ b/src/bin/pg_combinebackup/pg_combinebackup.c @@ -154,6 +154,7 @@ main(int argc, char *argv[]) pg_logging_init(argv[0]); progname = get_progname(argv[0]); + set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_combinebackup")); handle_help_version_opts(argc, argv, progname, help); memset(&opt, 0, sizeof(opt)); diff --git a/src/bin/pg_walsummary/pg_walsummary.c b/src/bin/pg_walsummary/pg_walsummary.c index 5e41b376d7b..daf6cd14ce7 100644 --- a/src/bin/pg_walsummary/pg_walsummary.c +++ b/src/bin/pg_walsummary/pg_walsummary.c @@ -67,6 +67,7 @@ main(int argc, char *argv[]) pg_logging_init(argv[0]); progname = get_progname(argv[0]); + set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_walsummary")); handle_help_version_opts(argc, argv, progname, help); /* process command-line options */ |