Re: [9fans] atol() bug

2013-03-12 Thread a
// If the behavior is intended why not say so upfront and // remove the BUGS section (or rename it to something else). In Plan 9, the BUGS section is not really all about "bugs". This is arguably unfortunate, but it's the way the system is. You might check out http://doc.cat-v.org/plan_9/m

Re: [9fans] atol() bug

2013-03-11 Thread Bakul Shah
On Mon, 11 Mar 2013 19:55:53 EDT erik quanstrom wrote: > On Mon Mar 11 18:56:04 EDT 2013, ba...@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 numbe

Re: [9fans] atol() bug

2013-03-11 Thread Kurt H Maier
On Mon, Mar 11, 2013 at 07:55:53PM -0400, erik quanstrom wrote: > On Mon Mar 11 18:56:04 EDT 2013, ba...@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 hexadecim

Re: [9fans] atol() bug

2013-03-11 Thread erik quanstrom
On Mon Mar 11 18:56:04 EDT 2013, ba...@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. >

Re: [9fans] atol() bug

2013-03-11 Thread Bakul Shah
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 r

Re: [9fans] atol() bug

2013-03-11 Thread Steven Stallion
from atof(2): BUGS Atoi, atol, and atoll accept octal and hexadecimal numbers in the style of C, contrary to the ANSI specification. On Mon, Mar 11, 2013 at 3:09 PM, Bakul Shah wrote: > The atol() manpage says: > > Atoi and atol recognize an optional string o

[9fans] atol() bug

2013-03-11 Thread Bakul Shah
The atol() manpage says: Atoi and atol recognize an optional string of tabs and spaces, then an optional sign, then a string of decimal dig- its. And yet atol(x) acts exactly like strol(x, nil, 0). This makes it unnecessarily incompatible with the unix version. Ditt