develooper Front page | perl.perl5.porters | Postings from September 2016

[perl #126310] no "Malformed UTF-8 character" warning onsingle-quoted strings under "use utf8"

Thread Previous
From:
Karl Williamson via RT
Date:
September 1, 2016 03:35
Subject:
[perl #126310] no "Malformed UTF-8 character" warning onsingle-quoted strings under "use utf8"
Message ID:
rt-4.0.24-4847-1472700902-1934.126310-15-0@perl.org
On Tue Aug 02 20:09:15 2016, sprout wrote:
> On Tue Aug 02 20:05:11 2016, sprout wrote:
> > On Tue Aug 02 19:58:51 2016, khw wrote:
> > > I intend to fix this, unless the consensus is to not.  It involves
> > > extra work in the parser of doing a UTF-8 validity check when
> > > appropriate on single-quoted strings.
> > 
> > If you mean in tokeq or scan_str, I think that’s the wrong place to do
> > it.  It sounds as though eval "'...'" will be subject to such extra
> > checks as well, but it is perfectly reasonable to assume that perl
> > strings are already well-formed.
> > 
> > Ideally, under ‘use utf8’, the validation would be done when the input
> > is read from a stream, though I can’t say offhand what is the best way
> > to go about that.
> 
> Probably in Perl_lex_next_chunk or something it calls.
> 

Is the attach3ed like what you mean?

-- 
Karl Williamson

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=126310

Thread Previous


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