* [PATCH] checkpatch: Make utf-8 test --strict
[not found] ` <20110630225925.278e2471.akpm@linux-foundation.org>
@ 2011-07-01 10:14 ` Joe Perches
0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2011-07-01 10:14 UTC (permalink / raw)
To: Andrew Morton, Andy Whitcroft; +Cc: LKML
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>
---
scripts/checkpatch.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index b0aa2c6..313ee88 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1408,7 +1408,7 @@ sub process {
my $ptr = substr($blank, 0, length($utf8_prefix)) . "^";
my $hereptr = "$hereline$ptr\n";
- ERROR("Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr);
+ CHK("Invalid UTF-8, patch and commit message should be encoded in UTF-8\n" . $hereptr);
}
# ignore non-hunk lines and lines being removed
^ permalink raw reply [flat|nested] only message in thread