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

Re: The Unicode Bug still bites?

Thread Previous | Thread Next
From:
Brian Fraser
Date:
December 23, 2011 21:03
Subject:
Re: The Unicode Bug still bites?
Message ID:
CA+nL+nZ-Gs5zYhG3RXyEQLrMrnb3pdqCadHVLajwXZUMXVdvoA@mail.gmail.com
On Sat, Dec 24, 2011 at 12:37 AM, Karl Williamson
<public@khwilliamson.com>wrote:

> On 04/13/2011 08:33 PM, brian d foy wrote:
>
>> In article<3020.1302738770@chthon**>, Tom Christiansen
>> <tchrist@perl.com>  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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About