develooper Front page | perl.perl5.porters | Postings from December 2000

Re: strtoul (was Re: [PATCH] Fcntl constants speedup)

Thread Previous | Thread Next
Nick Ing-Simmons
December 19, 2000 08:40
Re: strtoul (was Re: [PATCH] Fcntl constants speedup)
Message ID:
Jarkko Hietaniemi <> writes:
>> >As long as we don't mind losing locale based number grouping (whatever
>> >that is, but it's compiled in in my copy of strtol - I disassembled it
>> >and can see the pattern of code that's doing it)
>> We only loose "locale based number grouping" for things that "look
>> like numbers" in perl's view - so do we really loose anything?
>We gain more warnings if the system's strtoul() didn't use to complain
>about things like "1,234,567" and nicely returned 1234567.  Search
>perllocale for 'grouping', and see localeconv(3).

But I don't see where looks_like_number() lets things with ',' in through
to be converted ... 

Nick Ing-Simmons <>
Via, but not speaking for: Texas Instruments Ltd.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About