File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1551,9 +1551,9 @@ ($)
1551
1551
# Test partial character handling, for each byte not a
1552
1552
# full character
1553
1553
my $did_test_partial = 0;
1554
- for (my $j = 1; $j < $this_length - 1; $j ++) {
1554
+ for (my $byte_count = 1; $byte_count < $this_expected_len - 1; $byte_count ++) {
1555
1555
$did_test_partial = 1;
1556
- my $partial = substr ($this_bytes , 0, $j );
1556
+ my $partial = substr ($this_bytes , 0, $byte_count );
1557
1557
my $ret_should_be ;
1558
1558
my $comment ;
1559
1559
if ($disallow_type || $malformations_name ) {
@@ -1582,7 +1582,7 @@ ($)
1582
1582
$needed_to_tell = $dl if $dl < $needed_to_tell ;
1583
1583
}
1584
1584
1585
- if ($j < $needed_to_tell ) {
1585
+ if ($byte_count < $needed_to_tell ) {
1586
1586
$ret_should_be = 1;
1587
1587
$comment .= " , but need $needed_to_tell "
1588
1588
. " bytes to discern:" ;
@@ -1596,7 +1596,7 @@ ($)
1596
1596
undef @warnings_gotten ;
1597
1597
1598
1598
$ret = test_is_utf8_valid_partial_char_flags($partial ,
1599
- $j , $disallow_flags );
1599
+ $byte_count , $disallow_flags );
1600
1600
is($ret , $ret_should_be ,
1601
1601
" And is_utf8_valid_partial_char_flags("
1602
1602
. display_bytes($partial )
You can’t perform that action at this time.
0 commit comments