develooper Front page | perl.perl5.porters | Postings from July 2017

Re: [perl #131685] Rename utf8::is_utf8() (and other functions)

Thread Previous | Thread Next
From:
pali
Date:
July 4, 2017 11:38
Subject:
Re: [perl #131685] Rename utf8::is_utf8() (and other functions)
Message ID:
20170704113800.GA29506@pali
On Tuesday 04 July 2017 13:32:26 demerphq wrote:
> It is only unpredictable if your model of strings is broken.

I do not know what you mean if model of strings is broken, but once you
start receiving strings from other modules, user input or whatever
external resource, plus you start combining/concatenating those strings
you would hit the unicode bug. Therefore safe way is to use /aa or /u
modifiers in regex matching in way how you want to do matching.

> I happen
> to be very familiar with the internals, and do not find the actual
> rules to be that difficult to deal with.

I think this discussion is out of original request, which is for better
documentation of utf8.pm and better name for utf8::is_utf8() function.

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