Commit 34d99219 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

checkpatch: make utf-8 test --strict

Some patches are sent in using ISO-8859 or even Windows codepage 1252.

Make checkpatch accept these by default and only emit the "Invalid UTF-8"
message when using --strict.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 000d1cc1
...@@ -1609,7 +1609,7 @@ sub process { ...@@ -1609,7 +1609,7 @@ sub process {
my $ptr = substr($blank, 0, length($utf8_prefix)) . "^"; my $ptr = substr($blank, 0, length($utf8_prefix)) . "^";
my $hereptr = "$hereline$ptr\n"; my $hereptr = "$hereline$ptr\n";
ERROR("INVALID_UTF8", CHK("INVALID_UTF8",
"Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr); "Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment