linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Pierre Carrier <pierre@spotify.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] lib/vsprintf.c: "%#o",0 becomes '0' instead of '00'
Date: Sun, 06 May 2012 18:59:34 -0700	[thread overview]
Message-ID: <1336355974.8617.6.camel@joe2Laptop> (raw)
In-Reply-To: <1336353614-7944-1-git-send-email-pierre@spotify.com>

On Mon, 2012-05-07 at 03:20 +0200, Pierre Carrier 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

If you do this, why not change 0-7 instead of just 0?



  reply	other threads:[~2012-05-07  1:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-05 14:32 [PATCH 1/1] lib/vsprintf.c: "%#o",0 becomes '0' instead of '00' Pierre Carrier
2012-05-07  0:19 ` Stephen Rothwell
2012-05-07  1:20   ` Pierre Carrier
2012-05-07  1:59     ` Joe Perches [this message]
2012-05-07  2:20       ` Pierre Carrier
2012-05-07  3:55         ` Stephen Rothwell
2012-05-07  3:56     ` Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336355974.8617.6.camel@joe2Laptop \
    --to=joe@perches.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pierre@spotify.com \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).