]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - scripts/spdxcheck.py
sandbox: Correct SPL condition for building devicetree
[thirdparty/u-boot.git] / scripts / spdxcheck.py
index 3e784cf9f401fd480db03e03e7f43ee5d5d8e12b..ebd06ae642c933ef180fe385e2a55329e4f4899f 100755 (executable)
@@ -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: