bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: program_name in error.c


From: Sergey Poznyakoff
Subject: Re: program_name in error.c
Date: Sat, 09 Sep 2006 20:36:27 +0300

Eric Blake <address@hidden> wrote:

> Careful.  error.c is (mostly) synced upstream with glibc (right now, all
> but the comments and a couple of #include order issues), but this would
> widen the gap.

Yes, I see that the matter is not as simple as it seemed at the first
glance.

> As it is, error.c already has a check inside _LIBC that
> does exactly this; since glibc provides program_invocation_name already
> set to the right value.  Also, how would this interact with the progname
> module?

In its current state, there is no interaction.
 
> Maybe a better approach would be to make argp and progname play nicely;
> and on glibc systems, use the existing program_invocation_name.

Hmm, possibly.  By the way, progname does more checks when setting
program_name, for example it omits eventual 'lt-' prefix, which
argp does not.  I'd better re-evaluate all this, given your and Bruno's
feedback. 

Regards,
Sergey




reply via email to

[Prev in Thread] Current Thread [Next in Thread]