from Simon Cozens. This means that outputting >255 UTF8
is impossible. Consider this as a strong incentive to get
the I/O disciplines implemented.
p4raw-id: //depot/perl@7355
}
/* FALL THROUGH */
default:
+ /* XXX Fix this when the I/O disciplines arrive. XXX */
+ if (DO_UTF8(sv))
+ sv_utf8_downgrade(sv, FALSE);
tmps = SvPV(sv, len);
break;
}
So put in parentheses to say what you really mean.
+=item Wide character in %s
+
+(F) Perl met a wide character (>255) when it wasn't expecting one.
+
=item write() on closed filehandle %s
(W closed) The filehandle you're writing to got itself closed sometime
if (!utf8_to_bytes((U8*)c, &len)) {
if (fail_ok)
return FALSE;
- else
- Perl_croak(aTHX_ "big byte");
+ else {
+ if (PL_op)
+ Perl_croak(aTHX_ "Wide character in %s",
+ PL_op_desc[PL_op->op_type]);
+ else
+ Perl_croak(aTHX_ "Wide character");
+ }
}
SvCUR(sv) = len - 1;
SvUTF8_off(sv);