Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpatch: use utf-8 match for spell checking
The current code that checks for misspelling verifies, in a more complex regex, if $rawline matches [^\w]($misspellings)[^\w] Being $rawline a byte-string, a utf-8 character in $rawline can match the non-word-char [^\w]. E.g.: ./scripts/checkpatch.pl --git 81c2f05 WARNING: 'ment' may be misspelled - perhaps 'meant'? torvalds#36: FILE: MAINTAINERS:14360: +M: Clément Léger <clement.leger@bootlin.com> ^^^^ Use a utf-8 version of $rawline for spell checking. Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com> Reported-by: Clément Le Goffic <clement.legoffic@foss.st.com>
- Loading branch information