develooper Front page | perl.perl5.porters | Postings from October 2008

Re: PATCH [perl #59342] chr(0400) =~ /\400/ fails for >= 400

Thread Previous | Thread Next
Glenn Linderman
October 25, 2008 13:20
Re: PATCH [perl #59342] chr(0400) =~ /\400/ fails for >= 400
Message ID:
On approximately 10/25/2008 12:25 PM, came the following characters from 
the keyboard of karl williamson:
> I forgot to mention that currently (5.8 5.10),
>  perl -le 'print "\400" =~ /[\400]/'
> prints 1. So again the current implementation is inconsistent

Indeed.  So this increases the depth of my opinion that the solution 
should be to outlaw octal escapes greater than \377 on 8-bit platforms. 
      But not by interpreting them as a two-character octal escape, 
followed by an ASCII 0-7 character (sorry Tom, I just can't find a 
precedent for that!).

(a little oops in my previous reply, I mentioned 12 bits where I should 
have said 9 bits, in three places...)

Glenn --
A protocol is complete when there is nothing left to remove.
-- Stuart Cheshire, Apple Computer, regarding Zero Configuration Networking

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About