Re: [PATCH] printf: Add %B conversion specifier for binary

2020-04-27 Thread Theo de Raadt
Ingo Schwarze wrote: > Alejandro Colomar wrote on Mon, Apr 27, 2020 at 08:26:38PM +0200: > > > This patch adds a new feature to the ``printf`` family of functions: > > ``%B`` conversion specifier for printing unsigned numbers in binary. > > No. We do not want non-standard extensions to standar

Re: [PATCH] printf: Add %B conversion specifier for binary

2020-04-27 Thread Ingo Schwarze
Hi, Alejandro Colomar wrote on Mon, Apr 27, 2020 at 08:26:38PM +0200: > This patch adds a new feature to the ``printf`` family of functions: > ``%B`` conversion specifier for printing unsigned numbers in binary. No. We do not want non-standard extensions to standard functions unless they provid

Re: [PATCH] printf: Add %B conversion specifier for binary

2020-04-27 Thread Theo de Raadt
Alejandro Colomar wrote: > I also sent today a patch to add this specifier to glibc. They are > concerned about adding a new non-standard specifier, but if more C libs > are going to add it at the same time, it may become a thing. Sorry, but I doubt any of this is going to happen. The action t

[PATCH] printf: Add %B conversion specifier for binary

2020-04-27 Thread Alejandro Colomar
Hi all, This patch adds a new feature to the ``printf`` family of functions: ``%B`` conversion specifier for printing unsigned numbers in binary. Behaviour is exactly as with ``%X``, only changing the base (16 -> 2). ``%b`` is already in use by some ``printf(1)`` implementations, so I didn't u