From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by sourceware.org (Postfix) with ESMTPS id 1E8C7385780D for ; Mon, 26 Oct 2020 04:12:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1E8C7385780D Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B1FA25365C for ; Mon, 26 Oct 2020 05:12:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7RRexOFIebfh for ; Mon, 26 Oct 2020 05:12:02 +0100 (CET) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Subject: [PATCH] Don't use locale functions when libintl header isn't included. From: =?utf-8?q?=C3=89rico_Nogueira?= To: Date: Mon, 26 Oct 2020 01:11:04 -0300 Message-Id: X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Oct 2020 04:12:07 -0000 debuginfod.cxx used the bindtextdomain() and textdomain() functions despite not including any translated output. These functions were also used without including the libintl.h header. Signed-off-by: =C3=89rico Rolim --- debuginfod/debuginfod.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 2b68ff1f..bb95aefb 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -3092,8 +3092,6 @@ int main (int argc, char *argv[]) { (void) setlocale (LC_ALL, ""); - (void) bindtextdomain (PACKAGE_TARNAME, LOCALEDIR); - (void) textdomain (PACKAGE_TARNAME); =20 /* Tell the library which version we are expecting. */ elf_version (EV_CURRENT); --=20 2.29.0