[PATCH v6 04/11] stdio-common: Add __translated_number_width

Florian Weimer fweimer at redhat.com
Mon Jan 30 10:42:21 UTC 2023


* Dmitry V. Levin:

> 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.

Sorry, I can't reproduce it.  Did you build glibc yourself from upstream
sources, or did you get the build from somewhere else?

Thanks,
Florian



More information about the Strace-devel mailing list