On Mon, Jan 09, 2006 at 02:49:45PM +0100, Bruno Haible wrote: > And how about a runtime failure that occurs in every invocation? We > could add a check in getopt() and getopt_long(), verifying that > program_name is non-NULL. Most GNU programs use getopt() and > getopt_long().
I like the principle of this check, but doesn't this produce a problem with the process of syncing gnulib and glibc? We're talking about a permanent difference between the getopt() in glibc and the getopt() in gnulib (since glibc should not force users to call set_program_name()). After all, there are plenty of non-GNU programs that use getopt_long(). James. _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib