From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 11 Mar 2013 20:25:11 -0400 From: Kurt H Maier To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20130312002510.GA28452@intma.in> References: <20130311220907.46195B82A@mail.bitblocks.com> <20130311225516.2EF5CB82A@mail.bitblocks.com> <71d5bd1d0ba63c9e3643e932561e1a69@ladd.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <71d5bd1d0ba63c9e3643e932561e1a69@ladd.quanstro.net> Subject: Re: [9fans] atol() bug Topicbox-Message-UUID: 276f5484-ead8-11e9-9d60-3106f5b1d025 On Mon, Mar 11, 2013 at 07:55:53PM -0400, erik quanstrom wrote: > On Mon Mar 11 18:56:04 EDT 2013, bakul@bitblocks.com wrote: > > On Mon, 11 Mar 2013 15:44:05 PDT Steven Stallion wrote: > > > from atof(2): > > > > > > BUGS > > > Atoi, atol, and atoll accept octal and hexadecimal numbers > > > in the style of C, contrary to the ANSI specification. > > > > This BUG is obviously very easy to fix but it hasn't been.... > > Any good reason for this or just laziness? Anyway, more cruft > > to remember (and debug when porting software). > > there is a deep-seated assumption on the system that strtou?ll? accept > hex and octal. the fact that it's in the BUG section rather than fixed > means there are good reasons for not fixing it. > > if you were to make this change, i would be surprised if you could > boot your kernel. > > - erik > http://25.media.tumblr.com/tumblr_l43szb1rFf1qb03ezo1_500.jpg