Re: [PATCH 1/1] lib/vsprintf.c: "%#o",0 becomes '0' instead of '00'

From: Stephen Rothwell
Date: Sun May 06 2012 - 23:56:46 EST


On Mon, 7 May 2012 03:20:14 +0200 Pierre Carrier <pierre@xxxxxxxxxxx> wrote:
>
> number()'s behaviour is slighly changed:
> 0 becomes "0" instead of "00" when using the flag SPECIAL and base 8.
>
> Before:
> Number\Format %o %#o %x %#x
> 0 0 00 0 0x0
> 1 1 01 1 0x1
> 16 20 020 10 0x10
>
> After:
> Number\Format %o %#o %x %#x
> 0 0 0 0 0x0
> 1 1 01 1 0x1
> 16 20 020 10 0x10
>
> Signed-off-by: Pierre Carrier <pierre@xxxxxxxxxxx>

Acked-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx

Attachment: pgp00000.pgp
Description: PGP signature