From: Clement LE GOFFIC <clement.legoffic@foss.st.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Whitcroft <apw@canonical.com>, Joe Perches <joe@perches.com>,
Dwaipayan Ray <dwaipayanray1@gmail.com>,
Lukas Bulwahn <lukas.bulwahn@gmail.com>,
<linux-kernel@vger.kernel.org>,
Antonio Borneo <antonio.borneo@foss.st.com>
Subject: Re: [PATCH RESEND v2] checkpatch: use utf-8 match for spell checking
Date: Tue, 17 Jun 2025 09:35:15 +0200 [thread overview]
Message-ID: <bb3b1806-5089-43f6-8da3-b38b2e5edd01@foss.st.com> (raw)
In-Reply-To: <20250616173119.47615efceed220f52994679d@linux-foundation.org>
On 6/17/25 02:31, Andrew Morton wrote:
> On Mon, 16 Jun 2025 09:59:13 +0200 Clément Le Goffic <clement.legoffic@foss.st.com> wrote:
>
>> From: Antonio Borneo <antonio.borneo@foss.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@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>
>> ---
>> Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
>
> Oh, there it is, after the "^---$", which marks end-of-changelog!
Hi, Oh right sorry !
Thank you for making the change.
Clément
prev parent reply other threads:[~2025-06-17 7:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-16 7:59 Clément Le Goffic
2025-06-17 0:30 ` Andrew Morton
2025-06-17 0:31 ` Andrew Morton
2025-06-17 7:35 ` Clement LE GOFFIC [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bb3b1806-5089-43f6-8da3-b38b2e5edd01@foss.st.com \
--to=clement.legoffic@foss.st.com \
--cc=akpm@linux-foundation.org \
--cc=antonio.borneo@foss.st.com \
--cc=apw@canonical.com \
--cc=dwaipayanray1@gmail.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas.bulwahn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®