Re: [PATCH] docs: conf.py: fix the 'utf-8' typo
From: Jonathan Corbet
Date: Tue Aug 11 2026 - 13:10:58 EST
Randy Dunlap <rdunlap@xxxxxxxxxxxxx> writes:
> "encoding" should be 'utf-8'. Fix the typo.
>
> Fixes: 7ea9a550f710 ("docs: conf.py: several coding style fixes")
> Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> ---
> Cc: Jonathan Corbet <corbet@xxxxxxx>
> Cc: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
> Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
>
> Documentation/conf.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-next-20260805.orig/Documentation/conf.py
> +++ linux-next-20260805/Documentation/conf.py
> @@ -287,7 +287,7 @@ author = "The kernel development communi
> try:
> makefile_version = None
> makefile_patchlevel = None
> - with open("../Makefile", encoding="utf=8") as fp:
> + with open("../Makefile", encoding="utf-8") as fp:
> for line in fp:
So this is somewhat weird... open() will throw an exception with an
unknown encoding, but takes "utf=8" without complaint. Somehow they are
explicitly handling that case. So the code is arguably correct :)
That said, I've applied the patch, thanks.
jon