Bug report
Bug description:
Inspired by #146578, I wrote a checker to check all unicode format strings.
There are 2 kinds of errors.
- There are ~8 real mistakes.
- Comply with C99 for va_list: https://en.cppreference.com/w/c/variadic/va_arg.html
Most of the changes are %d <-> %ld for int and Py_ssize_t.
I opened an draft PR #146616 containing only the fixes to display what could be changed. We can discuss and cherry pick some fixes in that PR.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
Inspired by #146578, I wrote a checker to check all unicode format strings.
There are 2 kinds of errors.
Most of the changes are
%d<->%ldforintandPy_ssize_t.I opened an draft PR #146616 containing only the fixes to display what could be changed. We can discuss and cherry pick some fixes in that PR.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Python/directory #146619Objects/directory #146620