]> git.feebdaed.xyz Git - 0xmirror/ovs.git/commit
checkpatch: Set explicit encoding in do_authors_exist.
authorIvan Burnin <iburnin@k2.cloud>
Thu, 18 Sep 2025 09:06:27 +0000 (17:06 +0800)
committerIlya Maximets <i.maximets@ovn.org>
Fri, 3 Oct 2025 21:03:58 +0000 (23:03 +0200)
commitc8d2017e29368628856e8efba3507879aaa3b294
treec0ff5e37d8b754d73c50c4b172b4ee8f6b242995
parent8ddc9416dd88ba04a1051a86eefa0bc58e54e68c
checkpatch: Set explicit encoding in do_authors_exist.

The UTF-8 encoding system is used by default on most operating systems, but
not all of them. This can cause the ’24:checkpatch - AUTHORS.rst existence’
test to fail with a UnicodeDecodeError. All Python versions < 3.15 are
affected, resolved in PEP 686 (https://peps.python.org/pep-0686/)

Fixes: a6ccd111552d ("checkpatch: Add new check-authors-file option to checkpatch.py.")
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ivan Burnin <iburnin@k2.cloud>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
utilities/checkpatch.py