SvTAINTED_on(sv);
uv = toTITLE_LC_uvchr(utf8n_to_uvchr(s, slen, &ulen, 0));
}
- else
- uv = toTITLE_utf8(s);
+ else {
+ uv = toTITLE_utf8(s);
+ ulen = UNISKIP(uv);
+ }
tend = uvchr_to_utf8(tmpbuf, uv);
SvTAINTED_on(sv);
uv = toLOWER_LC_uvchr(utf8n_to_uvchr(s, slen, &ulen, 0));
}
- else
- uv = toLOWER_utf8(s);
+ else {
+ uv = toLOWER_utf8(s);
+ ulen = UNISKIP(uv);
+ }
tend = uvchr_to_utf8(tmpbuf, uv);