diff options
author | Joe Perches <joe@perches.com> | 2011-07-25 20:13:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 23:57:16 -0400 |
commit | 34d99219726ff4d3425b360d1e8d081627a73a00 (patch) | |
tree | 30d9d2c477c984d7be0aa13dc93c19189649e7f1 /scripts/checkpatch.pl | |
parent | 000d1cc1829f938c87402fc2fd4bb5e8daed6b52 (diff) |
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: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 05777ab818f1..8dd720ac0069 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1609,8 +1609,8 @@ sub process { | |||
1609 | my $ptr = substr($blank, 0, length($utf8_prefix)) . "^"; | 1609 | my $ptr = substr($blank, 0, length($utf8_prefix)) . "^"; |
1610 | my $hereptr = "$hereline$ptr\n"; | 1610 | my $hereptr = "$hereline$ptr\n"; |
1611 | 1611 | ||
1612 | ERROR("INVALID_UTF8", | 1612 | CHK("INVALID_UTF8", |
1613 | "Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr); | 1613 | "Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr); |
1614 | } | 1614 | } |
1615 | 1615 | ||
1616 | # ignore non-hunk lines and lines being removed | 1616 | # ignore non-hunk lines and lines being removed |