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

Re: Is this approach to checking for a program's UTF-8wellformedness ok?

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
February 11, 2017 07:04
Subject:
Re: Is this approach to checking for a program's UTF-8wellformedness ok?
Message ID:
20170211070413.24702.qmail@lists-nntp.develooper.com
Karl Williamson wrote:
> 1) It didn't catch string evals.
> 2) UTF8ness can change in mid chunk, after we've examined the chunk.
> 
> The first can readily be handled by doing the same check in the eval
> portion of lex_start.

Well, ideally any scalar passed to a string eval should have been
validated at some point already.  That is the point I was trying to
make when I suggested using lex_start or some code in its proximity.
We should be able to trust our own data structures, without validating
the same text over and over again.

Am I missing something?

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