[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250616173022.6a0d4c2cbdd3df8c803c5012@linux-foundation.org>
Date: Mon, 16 Jun 2025 17:30:22 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Clément Le Goffic <clement.legoffic@...s.st.com>
Cc: Andy Whitcroft <apw@...onical.com>, Joe Perches <joe@...ches.com>,
Dwaipayan Ray <dwaipayanray1@...il.com>, Lukas Bulwahn
<lukas.bulwahn@...il.com>, <linux-kernel@...r.kernel.org>, Antonio Borneo
<antonio.borneo@...s.st.com>
Subject: Re: [PATCH RESEND v2] checkpatch: use utf-8 match for spell
checking
On Mon, 16 Jun 2025 09:59:13 +0200 Clément Le Goffic <clement.legoffic@...s.st.com> wrote:
> From: Antonio Borneo <antonio.borneo@...s.st.com>
>
> 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@...tlin.com>
> ^^^^
>
> Use a utf-8 version of $rawline for spell checking.
>
> Signed-off-by: Antonio Borneo <antonio.borneo@...s.st.com>
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.
Powered by blists - more mailing lists