# HG changeset patch # User Karl Berry # Date 1168298809 0 # Node ID 18afc88bfe85374a7ef3238fda973dbea3a188dd # Parent 03006e334f20feb184b591686465d1300ddaf5bf main must set program_name diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-08 Karl Berry + + * doc/error.texi: mention that main() fns must set program_name + when progname is used. + 2007-01-08 Paul Eggert * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if diff --git a/doc/error.texi b/doc/error.texi --- a/doc/error.texi +++ b/doc/error.texi @@ -20,3 +20,7 @@ @code{error} module, so an LGPL user must provide their own replacement @code{program_name}, and a GPL user should manually specify using the @code{progname} module. + +Additionally, using the @code{progname} module is not something that +can be done implicitly. It requires that every @code{main()} function +be modified to set @code{program_name} as one of its first actions.