Jim Meyering wrote: > I've just added a new module: > > http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=78da34d40e6a2
Note that the XGETTEXT_OPTIONS will need to be updated to take into account these new functions that take a format string as argument. So that this doesn't get forgotten in the future, I propose this patch. It has the effect that gnulib-tool reports: Notice from module error: If you are using GNU gettext, add the following options to XGETTEXT_OPTIONS in your po/Makevars: --flag=error:3:c-format --flag=error_at_line:5:c-format Notice from module vasprintf: If you are using GNU gettext, add the following options to XGETTEXT_OPTIONS in your po/Makevars: --flag=asprintf:2:c-format --flag=vasprintf:2:c-format Notice from module xprintf: If you are using GNU gettext, add the following options to XGETTEXT_OPTIONS in your po/Makevars: --flag=xprintf:1:c-format --flag=xfprintf:2:c-format Notice from module xvasprintf: If you are using GNU gettext, add the following options to XGETTEXT_OPTIONS in your po/Makevars: --flag=xasprintf:1:c-format Objections? 2007-10-20 Bruno Haible <[EMAIL PROTECTED]> * modules/error (Notice): Mention how to augment the XGETTEXT_OPTIONS. * modules/vasprintf (Notice): Likewise. * modules/xprintf (Notice): Likewise. * modules/xvasprintf (Notice): Likewise. *** modules/error.orig 2007-10-20 16:18:38.000000000 +0200 --- modules/error 2007-10-20 16:18:12.000000000 +0200 *************** *** 1,6 **** --- 1,10 ---- Description: error() and error_at_line() functions: Error reporting. + Notice: + If you are using GNU gettext, add the following options to XGETTEXT_OPTIONS + in your po/Makevars: --flag=error:3:c-format --flag=error_at_line:5:c-format + Files: lib/error.h lib/error.c *** modules/vasprintf.orig 2007-10-20 16:18:38.000000000 +0200 --- modules/vasprintf 2007-10-20 16:18:05.000000000 +0200 *************** *** 1,6 **** --- 1,10 ---- Description: vsprintf with automatic memory allocation. + Notice: + If you are using GNU gettext, add the following options to XGETTEXT_OPTIONS + in your po/Makevars: --flag=asprintf:2:c-format --flag=vasprintf:2:c-format + Files: lib/vasprintf.c lib/asprintf.c *** modules/xprintf.orig 2007-10-20 16:18:38.000000000 +0200 --- modules/xprintf 2007-10-20 16:18:27.000000000 +0200 *************** *** 1,6 **** --- 1,10 ---- Description: a wrapper around printf that calls error upon ENOMEM or EILSEQ errors + Notice: + If you are using GNU gettext, add the following options to XGETTEXT_OPTIONS + in your po/Makevars: --flag=xprintf:1:c-format --flag=xfprintf:2:c-format + Files: lib/xprintf.h lib/xprintf.c *** modules/xvasprintf.orig 2007-10-20 16:18:38.000000000 +0200 --- modules/xvasprintf 2007-10-20 16:18:19.000000000 +0200 *************** *** 1,6 **** --- 1,10 ---- Description: vasprintf and asprintf with out-of-memory checking. Also see xalloc-die. + Notice: + If you are using GNU gettext, add the following options to XGETTEXT_OPTIONS + in your po/Makevars: --flag=xasprintf:1:c-format + Files: lib/xvasprintf.h lib/xvasprintf.c