author: Nishanth Menon <nm@ti.com> 2021-07-07 15:48:40 -0500
committer: Jonathan Corbet <corbet@lwn.net> 2021-07-12 09:56:50 -0600
commit: 40751c6c9bea6a5cfede7c61ee5f3cb1ab857029
parent: e73f0f0ee7541171d89f2e2491130c7771ba58d3
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/scripts/spdxcheck.py b/scripts/spdxcheck.py
index 3e784cf9f401..ebd06ae642c9 100755
--- a/scripts/spdxcheck.py
+++ b/scripts/spdxcheck.py
@@ -44,7 +44,7 @@ def read_spdxdata(repo):
continue
exception = None
- for l in open(el.path).readlines():
+ for l in open(el.path, encoding="utf-8").readlines():
if l.startswith('Valid-License-Identifier:'):
lid = l.split(':')[1].strip().upper()
if lid in spdx.licenses: