char *pat = SvPV(*sarg, patlen);
bool do_taint = FALSE;
+ SvUTF8_off(sv);
+ if (DO_UTF8(*sarg))
+ SvUTF8_on(sv);
sv_vsetpvfn(sv, pat, patlen, Null(va_list*), sarg + 1, len - 1, &do_taint);
SvSETMAGIC(sv);
if (do_taint)
}
if (! SvTIED_mg((SV*)keys, PERL_MAGIC_tied))
- i = (IV)HvKEYS(keys);
+ i = HvKEYS(keys);
else {
i = 0;
/*SUPPRESS 560*/