summaryrefslogtreecommitdiffstats
path: root/misc/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'misc/scripts')
-rwxr-xr-xmisc/scripts/check_ci_log.py2
-rwxr-xr-xmisc/scripts/copyright_headers.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/scripts/check_ci_log.py b/misc/scripts/check_ci_log.py
index d979d373de..d024a3e375 100755
--- a/misc/scripts/check_ci_log.py
+++ b/misc/scripts/check_ci_log.py
@@ -9,7 +9,7 @@ if len(sys.argv) < 2:
fname = sys.argv[1]
-with open(fname.strip(), "r") as fileread:
+with open(fname.strip(), "r", encoding="utf-8") as fileread:
file_contents = fileread.read()
# If find "ERROR: AddressSanitizer:", then happens invalid read or write
diff --git a/misc/scripts/copyright_headers.py b/misc/scripts/copyright_headers.py
index 82a4477cc0..169795921f 100755
--- a/misc/scripts/copyright_headers.py
+++ b/misc/scripts/copyright_headers.py
@@ -69,7 +69,7 @@ for f in sys.argv[1:]:
# In a second pass, we skip all consecutive comment lines starting with "/*",
# then we can append the rest (step 2).
- with open(fname.strip(), "r") as fileread:
+ with open(fname.strip(), "r", encoding="utf-8") as fileread:
line = fileread.readline()
header_done = False