Thanks, David. I've resent the patches squashed together and with the added ucrtbase tests.
Andrew
On Mon, Nov 08, 2021 at 07:06:26PM +0800, David Gow wrote:
In ucrtbase (but not in msvcrt), when a printf format specifier has two width specifiers (both a '*' and an explicit number), only the latter should take effect. (In msvcrt, the width of one is combined with the other).
This patch builds on the prior patch which implements the msvcrt behaviour, and needs to be applied on top of it: msvcrt: The '*' character should be interpreted as the beginning of the width specification[1,2]
It also supercedes the previous (incorrect) patch which used the ucrtbase behaviour on msvcrt as well: msvcrt: printf: Later width specifiers should override earlier ones[3]
For further details, see [4], [5], and [6].
Signed-off-by: David Gow david@davidgow.net