}
else {
STRLEN pkglen = 0;
- char *pkg = SvPV(arg, pkglen);
+ const char *pkg = SvPV(arg, pkglen);
s->obj = SvREFCNT_inc(arg);
s->stash = gv_stashpvn(pkg, pkglen, FALSE);
if (!s->stash) {
? &PL_sv_yes : &PL_sv_no;
result = PerlIOVia_method(aTHX_ f, MYMethod(UTF8), G_SCALAR, modesv, Nullsv);
if (result && SvTRUE(result)) {
- PerlIOBase(f)->flags |= ~PERLIO_F_UTF8;
+ PerlIOBase(f)->flags |= PERLIO_F_UTF8;
}
else {
PerlIOBase(f)->flags &= ~PERLIO_F_UTF8;
else {
/* Required open method not present */
PerlIO_funcs *tab = NULL;
- IV m = n - 1;
+ const IV m = n - 1;
while (m >= 0) {
PerlIO_funcs *t =
PerlIO_layer_fetch(aTHX_ layers, m, NULL);
}
if (result && SvOK(result)) {
STRLEN len = 0;
- char *p = SvPV(result, len);
+ const char *p = SvPV(result, len);
s->var = newSVpvn(p, len);
s->cnt = SvCUR(s->var);
return 0;