checkpatch: add a --strict check for utf-8 in commit logs
authorJoe Perches <joe@perches.com>
Tue, 1 Nov 2011 00:13:12 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 1 Nov 2011 00:30:57 +0000 (17:30 -0700)
commit15662b3e8644905032c2e26808401a487d4e90c1
tree0eae1a68779bd314459a2bff55c43e266329015d
parent67d0a0754455f89ef3946946159d8ec9e45ce33a
checkpatch: add a --strict check for utf-8 in commit logs

Some find using utf-8 in commit logs inappropriate.

Some patch commit logs contain unintended utf-8 characters when doing
things like copy/pasting compilation output.

Look for the start of any commit log by skipping initial lines that look
like email headers and "From: " lines.

Stop looking for utf-8 at the first signature line.

Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl