public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Don't use locale functions when libintl header isn't included.
@ 2020-10-26  4:11 Érico Nogueira
  2020-10-26 18:46 ` Mark Wielaard
  0 siblings, 1 reply; 6+ messages in thread
From: Érico Nogueira @ 2020-10-26  4:11 UTC (permalink / raw)
  To: elfutils-devel

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-26 22:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-26  4:11 [PATCH] Don't use locale functions when libintl header isn't included Érico Nogueira
2020-10-26 18:46 ` Mark Wielaard
2020-10-26 18:53   ` Érico Nogueira
2020-10-26 22:22     ` Mark Wielaard
2020-10-26 22:22   ` Frank Ch. Eigler
2020-10-26 22:44     ` Érico Nogueira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).