isn't there any more. Changed the skip condition.
Avoid core-dump if sv_utf8_upgrade() called on something
that does not become SvPOK after SvPV() (e.g. a ref).
p4raw-id: //depot/perlio@9429
if (!sv)
return 0;
- if (!SvPOK(sv))
- (void) SvPV_nolen(sv);
+ if (!SvPOK(sv)) {
+ STRLEN len = 0;
+ (void) sv_2pv(sv,&len);
+ if (!SvPOK(sv))
+ return len;
+ }
if (SvUTF8(sv))
return SvCUR(sv);
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
- unless (defined &perlio::import) {
+ unless (exists $open::layers{'perlio'}) {
print "1..0 # Skip: not perlio\n";
exit 0;
}
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
- unless (defined &perlio::import) {
+ unless (exists $open::layers{'perlio'}) {
print "1..0 # Skip: not perlio\n";
exit 0;
}