public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2] debuginfod.cxx: include libintl.h.
@ 2020-11-02  0:58 Érico Nogueira
  2020-11-03  0:17 ` Mark Wielaard
  0 siblings, 1 reply; 7+ messages in thread
From: Érico Nogueira @ 2020-11-02  0:58 UTC (permalink / raw)
  To: elfutils-devel; +Cc: Érico Rolim

From: Érico Rolim <erico.erc@gmail.com>

Uncomment the <libintl.h> include, since textdomain() and
bindtextdomain() functions provided by it are being used.

Signed-off-by: Érico Rolim <erico.erc@gmail.com>
---

This is a follow up to the patch that went the opposite way and removed
the calls to bindtextdomain() and textdomain(); it was decided that
those calls should be kept, so all that's needed here is to actually
include the header.

 debuginfod/debuginfod.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index 3085f388..d2a434ee 100644
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -46,7 +46,7 @@ extern "C" {
 #include <unistd.h>
 #include <stdlib.h>
 #include <error.h>
-// #include <libintl.h> // not until it supports C++ << better
+#include <libintl.h>
 #include <locale.h>
 #include <pthread.h>
 #include <signal.h>
-- 
2.29.0


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

* Re: [PATCH v2] debuginfod.cxx: include libintl.h.
  2020-11-02  0:58 [PATCH v2] debuginfod.cxx: include libintl.h Érico Nogueira
@ 2020-11-03  0:17 ` Mark Wielaard
  2020-11-03  2:44   ` Érico Nogueira
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Wielaard @ 2020-11-03  0:17 UTC (permalink / raw)
  To: Érico Nogueira; +Cc: elfutils-devel, Érico Rolim

On Sun, Nov 01, 2020 at 09:58:04PM -0300, Érico Nogueira via Elfutils-devel wrote:
> From: Érico Rolim <erico.erc@gmail.com>
> 
> Uncomment the <libintl.h> include, since textdomain() and
> bindtextdomain() functions provided by it are being used.
> 
> Signed-off-by: Érico Rolim <erico.erc@gmail.com>
> ---
> 
> This is a follow up to the patch that went the opposite way and removed
> the calls to bindtextdomain() and textdomain(); it was decided that
> those calls should be kept, so all that's needed here is to actually
> include the header.

Thanks, added a ChangeLog entry and pushed.

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

* Re: [PATCH v2] debuginfod.cxx: include libintl.h.
  2020-11-03  0:17 ` Mark Wielaard
@ 2020-11-03  2:44   ` Érico Nogueira
  2020-11-03 17:13     ` Mark Wielaard
  0 siblings, 1 reply; 7+ messages in thread
From: Érico Nogueira @ 2020-11-03  2:44 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: elfutils-devel, Érico Rolim

On Mon Nov 2, 2020 at 10:17 PM -03, Mark Wielaard wrote:
> On Sun, Nov 01, 2020 at 09:58:04PM -0300, Érico Nogueira via
> Elfutils-devel wrote:
> > From: Érico Rolim <erico.erc@gmail.com>
> > 
> > Uncomment the <libintl.h> include, since textdomain() and
> > bindtextdomain() functions provided by it are being used.
> > 
> > Signed-off-by: Érico Rolim <erico.erc@gmail.com>
> > ---
> > 
> > This is a follow up to the patch that went the opposite way and removed
> > the calls to bindtextdomain() and textdomain(); it was decided that
> > those calls should be kept, so all that's needed here is to actually
> > include the header.
>
> Thanks, added a ChangeLog entry and pushed.

Sorry for missing these, and thank you for adding them. So, from what I
understand now, the policy is to add ChangeLog entries in all affected
directories and for every commit?

Thanks,
Érico

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

* Re: [PATCH v2] debuginfod.cxx: include libintl.h.
  2020-11-03  2:44   ` Érico Nogueira
@ 2020-11-03 17:13     ` Mark Wielaard
  2020-11-03 17:16       ` Frank Ch. Eigler
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Wielaard @ 2020-11-03 17:13 UTC (permalink / raw)
  To: Érico Nogueira; +Cc: Érico Rolim, elfutils-devel

On Mon, 2020-11-02 at 23:44 -0300, Érico Nogueira via Elfutils-devel
wrote:
> On Mon Nov 2, 2020 at 10:17 PM -03, Mark Wielaard wrote:
> > Thanks, added a ChangeLog entry and pushed.
> 
> Sorry for missing these, and thank you for adding them. So, from what I
> understand now, the policy is to add ChangeLog entries in all affected
> directories and for every commit?

Yes, and per function/symbol. Basically following how GNU does it:
https://www.gnu.org/prep/standards/html_node/Change-Logs.html
https://www.gnu.org/software/emacs/manual/html_node/emacs/Change-Log-Commands.html
https://www.gnu.org/software/emacs/manual/html_node/emacs/Format-of-ChangeLog.html

But don't take it too seriously. I seem to be the only person left in
the project that loves ChangeLog entries. They really help me review
what was changed. If too many contributors complain we can look at
alternatives.

Cheers,

Mark

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

* Re: [PATCH v2] debuginfod.cxx: include libintl.h.
  2020-11-03 17:13     ` Mark Wielaard
@ 2020-11-03 17:16       ` Frank Ch. Eigler
  2020-11-03 17:34         ` Mark Wielaard
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Ch. Eigler @ 2020-11-03 17:16 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: Érico Nogueira, Érico Rolim, elfutils-devel

Hi -

> But don't take it too seriously. I seem to be the only person left in
> the project that loves ChangeLog entries. They really help me review
> what was changed. If too many contributors complain we can look at
> alternatives.

YES PLEASE! :-)

As a transition, how about ChangeLog format content in the git commit
messages?

- FChE


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

* Re: [PATCH v2] debuginfod.cxx: include libintl.h.
  2020-11-03 17:16       ` Frank Ch. Eigler
@ 2020-11-03 17:34         ` Mark Wielaard
  2020-11-05  0:36           ` Frank Ch. Eigler
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Wielaard @ 2020-11-03 17:34 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: Érico Nogueira, Érico Rolim, elfutils-devel

On Tue, 2020-11-03 at 12:16 -0500, Frank Ch. Eigler wrote:
> Hi -
> 
> > But don't take it too seriously. I seem to be the only person left
> > in
> > the project that loves ChangeLog entries. They really help me
> > review
> > what was changed. If too many contributors complain we can look at
> > alternatives.
> 
> YES PLEASE! :-)
> 
> As a transition, how about ChangeLog format content in the git commit
> messages?

You mean as done by GCC? Not have actual ChangeLog files, but add the
ChangeLog entries themselves in the commit message?
https://gcc.gnu.org/codingconventions.html#ChangeLogs

That certainly works for me. We could even steal their git commit/check
scripts to make it easier for people to follow that format.

Cheers,

Mark

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

* Re: [PATCH v2] debuginfod.cxx: include libintl.h.
  2020-11-03 17:34         ` Mark Wielaard
@ 2020-11-05  0:36           ` Frank Ch. Eigler
  0 siblings, 0 replies; 7+ messages in thread
From: Frank Ch. Eigler @ 2020-11-05  0:36 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: Érico Nogueira, Érico Rolim, elfutils-devel

Hi -

> > YES PLEASE! :-)
> > 
> > As a transition, how about ChangeLog format content in the git commit
> > messages?
> 
> You mean as done by GCC? Not have actual ChangeLog files, but add the
> ChangeLog entries themselves in the commit message?
> https://gcc.gnu.org/codingconventions.html#ChangeLogs

Yeah, IMO that would be better than what we have now,
though I prefer the LKML style more.

> That certainly works for me. We could even steal their git commit/check
> scripts to make it easier for people to follow that format.

If you like ... OTOH we've made do without mechanical enforcement so far.

- FChE


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

end of thread, other threads:[~2020-11-05  0:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02  0:58 [PATCH v2] debuginfod.cxx: include libintl.h Érico Nogueira
2020-11-03  0:17 ` Mark Wielaard
2020-11-03  2:44   ` Érico Nogueira
2020-11-03 17:13     ` Mark Wielaard
2020-11-03 17:16       ` Frank Ch. Eigler
2020-11-03 17:34         ` Mark Wielaard
2020-11-05  0:36           ` Frank Ch. Eigler

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).