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

Re: PATCH: partial [perl #58182]: regex case-sensitive matching now utf8ness independent

Thread Previous | Thread Next
From:
demerphq
Date:
December 10, 2009 04:16
Subject:
Re: PATCH: partial [perl #58182]: regex case-sensitive matching now utf8ness independent
Message ID:
9b18b3110912100416n7e4af00dlfa62bde6bfa567b0@mail.gmail.com
2009/12/10 Gerard Goossen <gerard@ggoossen.net>:
> What I am missing in the dicussion is that on average exists code
> would be improved by chaning the semantics, and thus instead of
> thinking about possibly breaking 20% of CPAN we are fixing 80% of
> CPAN.
>

Yes I agree.

And those crying "yeah but it was documented to behave like X so
changing it is bad" have to accept that it DOESNT work like "X" and
CANT work like "X" without being buggy. Also, in many cases relating
to this subject the docs are just wrong, or misleading or whatever.

However it should be remembered that going from the non-unicode world
to the unicode one involves breaking a lot previous system invariants
(aka laws of the universe). For instance in ascii you can always
assume that you can put a case modified version of a string in the
same storage as its original, this is most definitely NOT safe in
unicode and will/can/could result in buffer overruns as a consequence.
Thats just a start.

Yves



-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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