[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #32975] install-info: `(null) --help'
From: |
Sergey Poznyakoff |
Subject: |
[bug #32975] install-info: `(null) --help' |
Date: |
Tue, 05 Apr 2011 07:09:20 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; pl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 |
Follow-up Comment #4, bug #32975 (project texinfo):
I agree with (1) and (2).
As to (3), gettext is of course not able to handle this.
It is the responsibility of xgettext. And it would have reported an error and
refused to create the mo file, if fatal() had been declared as pass-c-format,
i.e. had the --flag=fatal:1:pass-c-format option been given in
XGETTEXT_OPTIONS in po/Makevars. This is the standard method to prevent such
bugs, so it qualifies as a bug in our Makevars. I'll fix this, but there
remains a minor point: fatal() is not exactly printf-like, it always takes a
second arguments and expects at most one %s specifier in its format string.
The same holds true for error(). This makes both functions error-prone: it
would suffice to supply a format string with any non-%s printf specifier to
make them print garbage in best case and coredump in the worst one.
I would rather redeclare both as (const char *,...). WDYT?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32975>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #32975] install-info: `(null) --help', Hilmar Preusse, 2011/04/02
- [bug #32975] install-info: `(null) --help', Karl Berry, 2011/04/03
- [bug #32975] install-info: `(null) --help', Hilmar Preusse, 2011/04/04
- [bug #32975] install-info: `(null) --help', Karl Berry, 2011/04/04
- [bug #32975] install-info: `(null) --help',
Sergey Poznyakoff <=
- [bug #32975] install-info: `(null) --help', Patrice Dumas, 2011/04/05
- [bug #32975] install-info: `(null) --help', Sergey Poznyakoff, 2011/04/05
- [bug #32975] install-info: `(null) --help', Karl Berry, 2011/04/05
- [bug #32975] install-info: `(null) --help', Sergey Poznyakoff, 2011/04/06
- [bug #32975] install-info: `(null) --help', Karl Berry, 2011/04/06
- [bug #32975] install-info: `(null) --help', Sergey Poznyakoff, 2011/04/06
- Re: [bug #32975] install-info: `(null) --help', Karl Berry, 2011/04/06
- Re: [bug #32975] install-info: `(null) --help', Sergey Poznyakoff, 2011/04/07
- [bug #32975] install-info: `(null) --help', Sergey Poznyakoff, 2011/04/07
- [SPAM] Re: [bug #32975] install-info: `(null) --help', Patrice Dumas, 2011/04/06