Recent commit
418080dc73a4b9e525a76d6d3b5034ff616716b4 fixing a test in
this file that was failing only on EBCDIC platforms had an error. It
applied a correction to a test that didn't require it, causing it to
fail. This commit changes that to use a different method to detect
which tests to apply the correction to, and knowing that some things can
be determined earlier as a result.
$comment .= ", but need 2 bytes to discern";
}
}
- elsif ($testname =~ /first non_unicode/ && $j < 2) {
+ elsif ( ($disallow_flags & $UTF8_DISALLOW_SUPER)
+ && $j < 2
+ && ord(native_to_I8(substr($bytes, 0, 1)))
+ lt ((isASCII) ? 0xF5 : 0xFA))
+ {
$ret_should_be = 1;
$comment .= ", but need 2 bytes to discern";
}