develooper Front page | perl.perl5.porters | Postings from May 2019

[perl #134139] Prevent use of strings with code points over 0xFF asarguments to "vec"

From:
James E Keenan via RT
Date:
May 30, 2019 23:15
Subject:
[perl #134139] Prevent use of strings with code points over 0xFF asarguments to "vec"
Message ID:
rt-4.0.24-19651-1559258138-1487.134139-15-0@perl.org
On Mon, 27 May 2019 14:08:14 GMT, jkeenan wrote:
> On Sat, 25 May 2019 02:08:59 GMT, jkeenan@pobox.com wrote:
> > pod/perldeprecation.pod contains this entry for perl-5.32:
> >
> > #####
> > Use of strings with code points over 0xFF as arguments to
> > "vec"
> >
> > "vec" views its string argument as a sequence of bits. A
> > string containing a code point over 0xFF is nonsensical.
> > This usage is deprecated in Perl 5.28, and will be removed
> > in Perl 5.32.
> > #####
> >
> > This entry was (mostly) added in this commit:
> >
> > #####
> > commit 76aae383784f602979d5efc9c8828918d67827d8
> > Author: Karl Williamson <khw@cpan.org>
> > Date:   Thu Jun 1 16:10:48 2017 -0600
> >
> > perldeprecation: Add vec() with above-FF code points
> > #####
> >
> > Make it so.
> 
> Please review the patch attached.  This is available for smoking in
> the following branch:
> 
> smoke-me/jkeenan/rt-134139-vec
> 
> Thank you very much.

Reviewed by khw.  Merged to blead with minor edits in commit da5a0da22ef5f5dd64e1fcdcac2c5ed1c0398085.

Thank you very much.
-- 
James E Keenan (jkeenan@cpan.org)

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



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