[PATCH v6 04/11] stdio-common: Add __translated_number_width
Dmitry V. Levin
ldv at strace.io
Mon Jan 30 09:40:55 UTC 2023
Hi,
On Fri, Dec 16, 2022 at 09:15:22PM +0100, Florian Weimer via Libc-alpha wrote:
> This function will be used to compute the width of a number
> after i18n digit translation.
I haven't bisected, but I suppose it was this changeset that introduced
a regression reported by the strace test suite.
glibc-2.36$ cat <<'EOF' |gcc -xc - && ./a.out
#include <stdio.h>
int main() { printf("%03d\n", 1); return 0; }
EOF
001
The same test on master prints 0001 instead of 001.
--
ldv
More information about the Strace-devel
mailing list