tmps = SvPV_force_nomg(sv, curlen);
if (DO_UTF8(repl_sv) && repl_len) {
if (!DO_UTF8(sv)) {
- sv_utf8_upgrade(sv);
+ sv_utf8_upgrade_nomg(sv);
curlen = SvCUR(sv);
}
}
chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
- plan (tests => 311);
+ plan (tests => 312);
}
use strict;
$$l = 0 ; check_count 'setting lvalue substr($utf8)';
tie $var, "main", "a";
$$l = "\x{100}" ; check_count 'assigning $utf8 to lvalue substr';
+tie $var1, "main", "a";
+substr$var1,0,0,"\x{100}"; check_count '4-arg substr with utf8 replacement';
{
local $SIG{__WARN__} = sub {};