mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
Read native audit JSON as UTF-8
Signed-off-by: Arths17 <Atharvranjan8@gmail.com>
This commit is contained in:
1 parent
0115af5c04
commit
281d92bfb5
4 files changed
+89
-1
No files matched your search
@@ -20,7 +20,7 @@ import subprocess
|
||||
|
||||
executables = set()
|
||||
for filename in ("native-build.jsonl", "native-tests.jsonl"):
|
||||
for line in (Path("artifacts") / filename).read_text().splitlines():
|
||||
for line in (Path("artifacts") / filename).read_text(encoding="utf-8").splitlines():
|
||||
entry = json.loads(line)
|
||||
if entry.get("executable"):
|
||||
executables.add(entry["executable"])
|
||||
|
||||
Reference in new issue
Block a user