This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c, op.c, sv.c: Prototype parsing and checking are nul-and-UTF8 clean.
authorBrian Fraser <fraserbn@gmail.com>
Fri, 30 Sep 2011 13:25:45 +0000 (06:25 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 6 Oct 2011 20:01:19 +0000 (13:01 -0700)
commitdab1c735364fcc41f4fbd1c15b5e26e8a7b07cab
treea4681e32c95dbd9711ee77cbcbf3d0727dd84eee
parente0260a5b7a4c9245402af2910213dd35717e5bd2
toke.c, op.c, sv.c: Prototype parsing and checking are nul-and-UTF8 clean.

This means that eval "sub foo ($;\0whoops) { say @_  }" will correctly
include \0whoops in the CV's prototype (while complaining about illegal
characters), and that

use utf8;
BEGIN { $::{"foo"} = "\$\0L\351on" }
BEGIN { eval "sub foo (\$\0L\x{c3}\x{a9}on) {};"; }

will not warn about a mismatched prototype.
embed.fnc
embed.h
op.c
proto.h
sv.c
t/lib/warnings/op
toke.c