This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make SvPVbyte work on tied non-PV
authorFather Chrysostomos <sprout@cpan.org>
Sat, 10 Aug 2013 11:48:17 +0000 (04:48 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 11 Aug 2013 14:54:18 +0000 (07:54 -0700)
commit48120f8fb3801512144143e22a9f264d9ceab915
tree107ab511bdbe8cbc2bc45b838722ee6dfd6696a6
parent3b68edc939ddd9cc726846b877988b10939715ab
Make SvPVbyte work on tied non-PV

The magic check came too late.  sv_utf8_downgrade does nothing if the
argument is not a PV.

So in the test added to svpv.t the returned string was in utf8,
not bytes.
ext/XS-APItest/t/svpv.t
sv.c