# HG changeset patch # User Paul Eggert # Date 1161244274 0 # Node ID 3309e733ac380e42ca3ff08468d745cbf2073bbe # Parent 5a9c6f16413ca257e78b1f94ffd5d377431ba1f6 * lib/xstrtol.h: Include gettext.h. (_STRTOL_ERROR): Wrap English-language formats inside gettext. Problem reported by Eric Blake. * modules/xstrtol (Depends-on): Add gettext-h. diff -r 5a9c6f16413c -r 3309e733ac38 ChangeLog --- a/ChangeLog Thu Oct 19 07:33:29 2006 +0000 +++ b/ChangeLog Thu Oct 19 07:51:14 2006 +0000 @@ -1,3 +1,10 @@ +2006-10-19 Paul Eggert + + * lib/xstrtol.h: Include gettext.h. + (_STRTOL_ERROR): Wrap English-language formats inside gettext. + Problem reported by Eric Blake. + * modules/xstrtol (Depends-on): Add gettext-h. + 2006-10-19 Paul Eggert (tiny change) * lib/strftime.c (advance): New macro. diff -r 5a9c6f16413c -r 3309e733ac38 lib/xstrtol.h --- a/lib/xstrtol.h Thu Oct 19 07:33:29 2006 +0000 +++ b/lib/xstrtol.h Thu Oct 19 07:51:14 2006 +0000 @@ -24,6 +24,8 @@ # include +# include "gettext.h" + # ifndef _STRTOL_ERROR enum strtol_error { @@ -57,18 +59,19 @@ abort (); \ \ case LONGINT_INVALID: \ - error ((Exit_code), 0, "invalid %s `%s'", \ + error ((Exit_code), 0, gettext ("invalid %s `%s'"), \ (Argument_type_string), (Str)); \ break; \ \ case LONGINT_INVALID_SUFFIX_CHAR: \ case LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW: \ - error ((Exit_code), 0, "invalid character following %s in `%s'", \ + error ((Exit_code), 0, \ + gettext ("invalid character following %s in `%s'"), \ (Argument_type_string), (Str)); \ break; \ \ case LONGINT_OVERFLOW: \ - error ((Exit_code), 0, "%s `%s' too large", \ + error ((Exit_code), 0, gettext ("%s `%s' too large"), \ (Argument_type_string), (Str)); \ break; \ } \ diff -r 5a9c6f16413c -r 3309e733ac38 modules/xstrtol --- a/modules/xstrtol Thu Oct 19 07:33:29 2006 +0000 +++ b/modules/xstrtol Thu Oct 19 07:51:14 2006 +0000 @@ -10,6 +10,7 @@ Depends-on: exitfail error +gettext-h intprops inttypes