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: Eric Blake
Subject: Re: program_name in error.c
Date: Sat, 09 Sep 2006 09:28:22 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Sergey Poznyakoff on 9/8/2006 11:42 PM:
> Hello,
> 
> I'd like to install the following change to error.c in order to
> better cooperate with argp.  Any objections?

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

Maybe a better approach would be to make argp and progname play nicely;
and on glibc systems, use the existing program_invocation_name.  It may
also be worth trying to push a change upstream to glibc to use
program_invocation_name instead of program_name, and simplify error.c.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFAt2W84KuGfSFAYARApjzAJ4qZXJhYBKV7S9niCRtuw93j2pysACgmAG+
b6y7BJ+H32tsq2gP6lEXeGw=
=j9y4
-----END PGP SIGNATURE-----




reply via email to

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