Re: [PATCH RESEND v2] checkpatch: use utf-8 match for spell checking

From: Andrew Morton
Date: Mon Jun 16 2025 - 20:30:28 EST


On Mon, 16 Jun 2025 09:59:13 +0200 Clément Le Goffic <clement.legoffic@xxxxxxxxxxx> wrote:

> From: Antonio Borneo <antonio.borneo@xxxxxxxxxxx>
>
> 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 81c2f059ab9
> WARNING: 'ment' may be misspelled - perhaps 'meant'?
> #36: FILE: MAINTAINERS:14360:
> +M: Clément Léger <clement.leger@xxxxxxxxxxx>
> ^^^^
>
> Use a utf-8 version of $rawline for spell checking.
>
> Signed-off-by: Antonio Borneo <antonio.borneo@xxxxxxxxxxx>

This should have included your signed-off-by. as you were on the patch
delivery path. I have made that change to the mm.git copy of this
patch, thanks.