Christos Zoulas writes: > In article <20151113111144.ga13...@britannica.bec.de>, > Joerg Sonnenberger <jo...@britannica.bec.de> wrote: > >On Thu, Nov 12, 2015 at 12:23:51PM -0500, Christos Zoulas wrote: > >> Module Name: src > >> Committed By: christos > >> Date: Thu Nov 12 17:23:51 UTC 2015 > >> > >> Modified Files: > >> src/common/lib/libc/stdlib: _strtol.h _strtoul.h > >> > >> Log Message: > >> Recognize 0[bB] as binary (base 2) > > > >Based on what authority? This is a ISO C function and that doesn't allow > >binary input. I am quite concerned about changing a function used that > >often, especially as it can break a lot of existing code. > > I don't think it will since it will only affect conversions with 0[bB], > and the OS/X code is doing the same, but I will revert it until others > catch up.
the problem is that something that was "0b<something>" always came out as 0 before, but now it doesn't. that's a fairly major semantic change, i think i agree with joerg that it has a high chance of breaking existing usage. .mrg.