develooper Front page | perl.perl5.porters | Postings from December 2011

Re: The Unicode Bug still bites?

Thread Previous | Thread Next
Brian Fraser
December 23, 2011 21:03
Re: The Unicode Bug still bites?
Message ID:
On Sat, Dec 24, 2011 at 12:37 AM, Karl Williamson

> On 04/13/2011 08:33 PM, brian d foy wrote:
>> In article<3020.1302738770@chthon**>, Tom Christiansen
>> <>  wrote:
>>  What's wrong with quotemeta() someday changing to quote say,
>>> \p{Pattern_Syntax}
>>> character if and when Perl makes use of them?
>> Why not do that now (as in 5.15) with the current characters that it
>> would quote. Then, it's already there when we want to expand it.
> This seems like a reasonable solution.  Does anyone have objections?

I do, sorta. \p{Pattern_Syntax} isn't a superset of what quotemeta()
currently uses; things like NULL and the control characters aren't included
in the former, but are quoted by the latter.
Seems easy enough to resolve though: quotemeta should escape all non-word
character in the ASCII range, or those matching \p{Pattern_Syntax}.

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