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

[PATCH perl #59342] High octals problem

Thread Next
karl williamson
January 13, 2009 17:25
[PATCH perl #59342] High octals problem
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About