Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtjPT-00H2Co-Sf for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Apr 2024 07:27:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rtjPR-0025g8-T6 for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Apr 2024 07:27:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtjPR-0025e0-J1 for pgsql-hackers@lists.postgresql.org; Mon, 08 Apr 2024 07:27:17 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rtjPK-001WoE-Ex for pgsql-hackers@lists.postgresql.org; Mon, 08 Apr 2024 07:27:16 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6ecf3f001c5so3336936b3a.1 for ; Mon, 08 Apr 2024 00:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712561226; x=1713166026; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:user-agent:from:subject:to :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=ZNr6MRuXD8ztzOFfKXfW6C+sciLEfP4O4CeJ0iezTwU=; b=Xlk7WMXq4m8DdLD/D6N/oG/4fUAehyYQ9WvcsAXvjfCrT+71L5PYIHvfDFloNIKcAO hi4VUHBcoJlK/Taluc7/Kwq1cI8bG/wQz8ywLyHzaiK5zvGG021jyvSdawdXVsEm0OaP +xwkQyOSxxovoAWVLSQp1wnt8wqqeZIB8nOzh1JaJUZx8oe1/dgYRVjxx0J8rLxoqsnk aLVnoE2NNCyzQ8U6OOkA0MRN11S5qjBGQ+d037z7oBCqZNfiqZwyssZOjibpKUHdWfad wz5iMVfTR+WQuT9VVIZzrDrBep6KE//zbJRD5+3HHDF/YsdvlAO03GQvzW+dNpXJrOYm kDXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712561226; x=1713166026; h=content-transfer-encoding:mime-version:user-agent:from:subject:to :message-id:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZNr6MRuXD8ztzOFfKXfW6C+sciLEfP4O4CeJ0iezTwU=; b=VfqbKM77FrunCmVieiByY+I2qvQp+lv52G547RQb89xQ+LrTVFOQx7CQ9Q4XWteHRA 8hCy9XbiQcIzrM9zGpphdqP0jidBe73Vhf0OWxrhvIIewbRexvnUQZsIHnhwiyPZvs6r CulSW34MfPp2Hl4ATosY4FCO7X4vOO3siX4GOPghOZ2GbhEd5A7s/+/h17wnXwomfUxk 0R8OHbw1t95VMVSzYzteK8k4qfZQuVIFUPPZtEex1SWTb/p2mg5LO9dTr1Hca5IyYeHF OeJf5YdlhZPiu7Eft1aGXJNNTmK0MjcTPZTnWq8HBEALGY9kT2JxyLY+xDlaSE46Qdph y9MQ== X-Gm-Message-State: AOJu0YxTZ88LJ9qufOxJN8TqTAQ031ADDrhtsZIvqgYYb2CuBXx29XCL oN2V5i06djjUfgumcUgR+ubJm69XZb0G5EDfUEjU/FvZa5Mh2r7PlvDQpHid X-Google-Smtp-Source: AGHT+IG3pN907jnt0GPEiCwlBvSgPP/IZl5ojCYG3YcPymLqiCq4QzgEzx8R/Q0gvzAXkK6UQxmPDQ== X-Received: by 2002:a05:6a00:2d87:b0:6ea:b395:ca67 with SMTP id fb7-20020a056a002d8700b006eab395ca67mr8239392pfb.29.1712561224946; Mon, 08 Apr 2024 00:27:04 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id u16-20020a056a00099000b006ed06c4074bsm4791342pfg.85.2024.04.08.00.27.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 00:27:04 -0700 (PDT) Date: Mon, 08 Apr 2024 16:27:02 +0900 (JST) Message-Id: <20240408.162702.183779935636035593.horikyota.ntt@gmail.com> To: pgsql-hackers@lists.postgresql.org Subject: NLS doesn't work for pg_combinebackup From: Kyotaro Horiguchi User-Agent: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello. I noticed that NLS doesn't work for pg_combinebackup. The cause is that the tool forgets to call set_pglocale_pgservice(). This issue is fixed by the following chage. diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c index 1b07ca3fb6..2788c78fdd 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)); regards. -- Kyotaro Horiguchi NTT Open Source Software Center