t = s - prog->check_offset_max;
if (s - strpos > prog->check_offset_max /* signed-corrected t > strpos */
- && (!(prog->reganch & ROPT_UTF8)
+ && (!do_utf8
|| ((t = reghopmaybe3_c(s, -(prog->check_offset_max), strpos))
&& t > strpos)))
/* EMPTY */;
t = s - prog->check_offset_max;
if (s - strpos > prog->check_offset_max /* signed-corrected t > strpos */
- && (!(prog->reganch & ROPT_UTF8)
+ && (!do_utf8
|| ((t = reghopmaybe3_c(s, -prog->check_offset_max, strpos))
&& t > strpos))) {
/* Fixed substring is found far enough so that the match
@INC = '../lib';
}
-print "1..46\n";
+print "1..47\n";
$FS = ':';
$x[2] eq '2';
print "ok 46\n";
}
+
+{
+ # [perl #17064]
+ my $warn;
+ local $SIG{__WARN__} = sub { $warn = join '', @_; chomp $warn };
+ my $char = "\x{10f1ff}";
+ my @a = split /\r?\n/, "$char\n";
+ if (@a == 1 && $a[0] eq $char && !defined($warn)) {
+ print "ok 47\n";
+ } else {
+ print "not ok 47\t# <@a> <$warn>\n";
+ }
+}