diff --git a/.github/scripts/spacecheck.pl b/.github/scripts/spacecheck.pl index 10bd2fc8ed..a50b260bf5 100755 --- a/.github/scripts/spacecheck.pl +++ b/.github/scripts/spacecheck.pl @@ -167,7 +167,13 @@ while(my $filename = <$git_ls_files>) { for my $e (split(//, $non)) { $hex .= sprintf("%s%02x", $hex ? " ": "", ord($e)); } - push @err, "content: has non-ASCII: '$non' ($hex)"; + my $line; + for my $l (split(/\n/, $content)) { + $line++; + if($l =~ /([\x80-\xff]+)/) { + push @err, "line $line: has non-ASCII: '$non' ($hex)"; + } + } } if(@err) {