Given that t/TEST already had code to add -I../lib when testing UTF-8 with
-utf8, do likewise for testing UTF-16 with -utf16.
}
}
- my $utf8 = $::with_utf8 ? "-I$lib -Mutf8" : '';
+ my $utf8 = ($::with_utf8 || $::with_utf16) ? "-I$lib -Mutf8" : '';
my %options = (
perl => $perl,
*end = '\0';
}
SvCUR_set(utf16_buffer, 0);
- /* This is to be bug-for-bug faithful with the implementation we've just
- replaced. Without this, ./TEST -utf16 base/lex.t fails, attempting to
- load utf8.pm */
- SvUTF8_off(sv);
DEBUG_P({sv_dump(sv);});
return SvCUR(sv);
}