diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-01-31 12:57:09 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-31 12:57:09 -0800 |
commit | fe46cbda823c09f80e4bc48dd93fafb26cc805f6 (patch) | |
tree | 0a31624d53759263953496dec82595cc9edaf9d2 /embed.fnc | |
parent | 92c88ef1fd925fb1c768293bd43deb970990e7f3 (diff) | |
download | perl-fe46cbda823c09f80e4bc48dd93fafb26cc805f6.tar.gz |
[perl #108994] Stop SvPVutf8 from coercing SVs
In shouldn’t destroy globs or references passed to it, or try to
coerce them if they are read-only or incoercible.
I added tests for SvPVbyte at the same time, even though it was not
exhibiting the same problems, as sv_utf8_downgrade doesn’t try to
coerce anything. (SvPVbyte has its own set of bugs, which I hope to
fix in fifthcoming commits.)
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1211,7 +1211,7 @@ Apd |NV |sv_2nv_flags |NULLOK SV *const sv|const I32 flags pMd |SV* |sv_2num |NN SV *const sv Amb |char* |sv_2pv |NULLOK SV *sv|NULLOK STRLEN *lp Apd |char* |sv_2pv_flags |NULLOK SV *const sv|NULLOK STRLEN *const lp|const I32 flags -Apd |char* |sv_2pvutf8 |NN SV *const sv|NULLOK STRLEN *const lp +Apd |char* |sv_2pvutf8 |NN SV *sv|NULLOK STRLEN *const lp Apd |char* |sv_2pvbyte |NN SV *const sv|NULLOK STRLEN *const lp Ap |char* |sv_pvn_nomg |NN SV* sv|NULLOK STRLEN* lp Amb |UV |sv_2uv |NULLOK SV *sv |