* [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
only message in thread, other threads:[~2011-07-01 10:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20110628145623.65567b78.akpm@linux-foundation.org>
[not found] ` <1309410138.1726.21.camel@Joe-Laptop>
[not found] ` <20110629231056.1b5d20a9.akpm@linux-foundation.org>
[not found] ` <1309491411.7277.23.camel@Joe-Laptop>
[not found] ` <20110630225925.278e2471.akpm@linux-foundation.org>
2011-07-01 10:14 ` [PATCH] checkpatch: Make utf-8 test --strict Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®