develooper Front page | perl.perl5.porters | Postings from February 2011

Re: [perl #84680] POSIX::isdigit() returns 1 for the empty string

Thread Previous | Thread Next
From:
Mark Overmeer
Date:
February 24, 2011 23:02
Subject:
Re: [perl #84680] POSIX::isdigit() returns 1 for the empty string
Message ID:
20110225070238.GA19479@moon.overmeer.net
* Steve Peters (steve@fisharerojo.org) [110225 04:05]:
> On Tue, Feb 22, 2011 at 10:27 AM, Robert Lang <perlbug-followup@perl.org>wrote:
> > $ perl -MPOSIX -e 'print isdigit(""), "\n"'

> Thanks for the report.  I do have a fix ready for this, but before I commit
> this, this technically effects all the ifXXX() functions.  Also, in the
> ext/POSIX/t/posix.t we have...

The change in C is simple, of course, but it will break existing
implementations. This is a flaw in the docs, not in the code.
-- 
Regards,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark@Overmeer.net                          solutions@overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About