develooper Front page | perl.perl5.porters | Postings from January 2009

[PATCH perl #59342] High octals problem

Thread Next
From:
karl williamson
Date:
January 13, 2009 17:25
Subject:
[PATCH perl #59342] High octals problem
Message ID:
496D3F02.6020204@khwilliamson.com
Add warning against using an octal above 0377 in some regexes.

An octal constant, like \400, in regular expressions may be interpreted 
modulo 0400, or may not, depending on if it is in utf8, or "use 
encoding" has been used, or is in a character class.  The consensus of 
the p5p list was that we should move to not accepting such 
larger-than-a-byte octal constants in future versions of perl.  For now, 
in the one case where it is interpreted as modulo 0400, I said I would 
add a warning, since no one would be expecting this behavior.  So here 
it is.

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