develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #115166] Some parts of regex engine impose I32 limit on code points

From:
Father Chrysostomos via RT
Date:
July 27, 2013 01:09
Subject:
[perl #115166] Some parts of regex engine impose I32 limit on code points
Message ID:
rt-3.6.HEAD-2552-1374887350-1703.115166-15-0@perl.org
On Sun Oct 07 14:36:18 2012, public@khwilliamson.com wrote:
> On 10/07/2012 03:13 PM, karl williamson (via RT) wrote:
> > # New Ticket Created by  karl williamson
> > # Please include the string:  [perl #115166]
> > # in the subject line of all future correspondence about this issue.
> > # <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=115166 >
> >
> >
> > This is a bug report for perl from khw@karl.(none),
> > generated with the help of perlbug 1.39 running under perl 5.17.5.
> >
> >
> > -----------------------------------------------------------------
> > Some parts of the regex engine and documentation say that it can handle
> > anything that fits in a UV.  Other parts (I'm not sure about the
> > documentation) restrict things to an I32.
> > -----------------------------------------------------------------
> 
> I'm currently thinking that it was/is a mistake to allow anything larger 
> than the platform's IV_MAX.  And I've been some what responsible for 
> that mistake.
> 
> It turns out that some code uses negative code points as markers, and 
> this seems like a reasonable thing to do.
> 
> I therefore propose that we break potential backwards compatibility by 
> restricting code points to IV_MAX.  I'm not sure that deprecation cycles 
> are needed.

What I say may not be of any consequence, but I do see uses for code
points up to U32_MAX.  As for anything larger than that, I don’t care
what you do, even on 64-bit platforms.  In fact, if we restrict 64-bit
platforms to U32_MAX, we could document the limit without qualifications.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=115166



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