[PATCH] Don't use locale functions when libintl header isn't included.
Érico Nogueira
ericonr@disroot.org
Mon Oct 26 04:11:04 GMT 2020
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: Érico Rolim <erico.erc@gmail.com>
---
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);
/* Tell the library which version we are expecting. */
elf_version (EV_CURRENT);
--
2.29.0
More information about the Elfutils-devel
mailing list