Make substr assignment work with changing UTF8ness
authorFather Chrysostomos <sprout@cpan.org>
Sun, 30 Sep 2012 20:04:53 +0000 (13:04 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 1 Oct 2012 19:51:57 +0000 (12:51 -0700)
commitfc061ed836b74a70a080622eebe8d7f247fb1990
tree8e965beeb922eab00b894353dca1b38629635406
parent0d3361061f711b74d2c4870d5539c31071de0df1
Make substr assignment work with changing UTF8ness

Assigning to a substr lvalue scalar was invoking overload too
many times if the target was a UTF8 string and the assigned sub-
string was not.

Since sv_insert_flags itself stringifies the scalar, the easiest
way to fix this is to force the target to a PV before doing any-
thing to it.
mg.c
t/op/utf8cache.t