From eeea655ee78953c67933f9fcbe8a6933cdff4a1a Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 2 Feb 2023 16:57:01 +0100 Subject: [PATCH] framework: explicit utf-8 encoding for reading json As the default encoding is platform dependent --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index 2d744e38c..2319e339e 100755 --- a/run.py +++ b/run.py @@ -484,7 +484,7 @@ class FilterCheck: raise TestError("%s does not exist" % (json_filename)) count = 0 - with open(json_filename, "r") as fileobj: + with open(json_filename, "r", encoding="utf-8") as fileobj: for line in fileobj: event = json.loads(line) if self.match(event): -- 2.47.2