]> git.ipfire.org Git - thirdparty/xz.git/commit
xz: Avoid printf formats like %2$s
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 4 Jan 2025 13:02:16 +0000 (15:02 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 4 Jan 2025 15:37:46 +0000 (17:37 +0200)
commit5651d153031a7ee2581cdba9bff658031826cb50
treee2d5397a47736b31a38c4cbf807c9c409c62957b
parent63b246c90e7677c617faab1d3f6fc5c643b5e7cf
xz: Avoid printf formats like %2$s

It's a POSIX feature that isn't in standard C. It's not available on
Windows. Even MinGW-w64 with __USE_MINGW_ANSI_STDIO doesn't support
it even though it supports POSIX %'d for thousand separators.

Gettext's <libintl.h> provides overrides for printf and other functions
which do support the %2$s formats. Translations use them. But xz should
work on Windows without <libintl.h> too.

Fixes: 3e9177fd206d20d6d8acc7d203c25a9ae0549229
src/xz/message.c