develooper Front page | perl.perl5.porters | Postings from November 2010

[perl #78820] PATCH: utf8_heavy.pl don't die if called before Unicode tables built

Thread Next
From:
karl williamson
Date:
November 4, 2010 14:15
Subject:
[perl #78820] PATCH: utf8_heavy.pl don't die if called before Unicode tables built
Message ID:
rt-3.6.HEAD-4263-1288905322-1604.78820-75-0@perl.org
# New Ticket Created by  karl williamson 
# Please include the string:  [perl #78820]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=78820 >


This is patch gets round the chicken/egg problem of modules being needed 
by miniperl during the build of full Perl.  Changes I'm making to make 
regular expressions more aware of Unicode possible matches are causing 
these modules to realize that potentially some of their regular 
expressions could match outside the ASCII range, and so utf8_heavy is 
getting called in places where it previously wasn't.  The change is to 
not die when there are no tables and this is miniperl (because dying 
would prevent Perl from finishing compiling itself), but to return that 
no Unicode characters are matched the regular expressions.

I'm submitting this as a separate patch in case there is a problem with 
using $^X to find out if this is miniperl

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