pacman/lib/libalpm
Chantry Xavier 7eaad2f2a9 xgettext : change pass-c-format flag to c-format.
Currently xgettext apparently attempts to autodetect c format strings (eg a
string with a %s) to decide whether to use c-format flag or not.

If we use --flag=_:1:c-format instead of --flag=_:1:pass-c-format, the
c-format will be applied everywhere.
I couldn't find this documented anywhere though. But the pass prefix is
mentioned here :
http://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html#xgettext-Invocation
"Specifies additional flags for strings occurring as part of the argth
argument of the function word. The possible flags are the possible format
string indicators, such as ‘c-format’, and their negations, such as
‘no-c-format’, possibly prefixed with ‘pass-’."

And c-format is documented there :
http://www.gnu.org/software/gettext/manual/html_node/c_002dformat-Flag.html#c_002dformat-Flag
"This situation happens quite often. The printf function is often called
with strings which do not contain a format specifier. Of course one would
normally use fputs but it does happen. In this case xgettext does not
recognize this as a format string but what happens if the translation
introduces a valid format specifier? The printf function will try to access
one of the parameters but none exists because the original code does not
pass any parameters."

And that's exactly what happened with FS#9658.
So using c-format for every string will prevent this issue from happening
again.

Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
2008-02-25 20:25:57 -06:00
..
po xgettext : change pass-c-format flag to c-format. 2008-02-25 20:25:57 -06:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c libalpm/add.c : safety check for fixing FS#9235. 2008-02-07 14:58:23 +01:00
add.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm.h Remove upgradedelay and all code associated with it 2008-01-08 15:49:52 -06:00
alpm_list.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
alpm_list.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
backup.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
backup.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
be_files.c Ensure DESC infolevel is loaded before checking pkg->filename 2008-02-13 22:52:53 -06:00
cache.c Remove gettext calls from debug-level messages 2008-01-01 20:03:24 -06:00
cache.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
conflict.c ensure chk_fileconflicts reads entire file list 2008-02-11 20:40:43 -06:00
conflict.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
db.c Change the versioned provision format. 2008-01-14 22:03:03 -06:00
db.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
delta.c Fix memory leak in shortest_delta_path. 2007-12-21 11:08:05 -06:00
delta.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
deps.c Change the versioned provision format. 2008-01-14 22:03:03 -06:00
deps.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
error.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
error.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
group.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
group.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
handle.c Fix library interface 2008-01-11 08:43:10 -06:00
handle.h Remove upgradedelay and all code associated with it 2008-01-08 15:49:52 -06:00
log.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
log.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
Makefile.am Remove provide.c and provide.h . 2007-11-17 09:50:05 -06:00
md5.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
md5.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
package.c Ensure DESC infolevel is loaded before checking pkg->filename 2008-02-13 22:52:53 -06:00
package.h Fix library interface 2008-01-11 08:43:10 -06:00
remove.c don't send CHECKDEPS_DONE event when NODEPS is set. 2008-01-12 10:45:45 -06:00
remove.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
server.c Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
server.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
sync.c libalpm/sync.c : fix poorly worded debug message. 2008-02-25 00:30:21 +01:00
sync.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
trans.c FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00
trans.h Update GNU GPL boilerplate and copyright dates 2007-12-10 22:55:39 -06:00
util.c FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00
util.h FS#9183 : force correct permissions on tmp/. 2008-01-13 18:42:26 -06:00