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

Re: The Unicode Bug still bites?

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
April 13, 2011 17:52
Subject:
Re: The Unicode Bug still bites?
Message ID:
27880.1302742307@chthon
> If we're going to do a backward incompatible change now, why not make it so
> we don't have to do another later. Clarifying our intents for quotemeta is
> one way of doing that.

I don't really understand what "backward-incompatible change" you are referring
to.  Or are you simply saying that *any* change is "backward-incompatible"?
It's ok to break things that are already broken.

What *do* people use quotemeta for if not for regexes??

I do not at all like that it behaves differently depending on the
whether the dodgy UTF-8 flag is on.

Currently, it quotes all 128 code points between 128-255 if and only
if the UTF-8 if off.  I do not consider this reasonable, desirable,
or in any fashion useful.

I see three possible changes in that code-point range.

    (1) Don't quote them at all, because Perl doesn't use them *yet*.
    (2) Quote all 63 \W code points in that range.
    (3) Quote all 18 Pattern_Syntax code points in that range.

Choices two and three beg the question of why there but not higher up.
And the answer to that question is because Perl isn't using those yet.

Which again leads back to choice one.

--tom

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