From 94d49ada2a1138c3d6b87c6ef9d70ee9b288d4e8 Mon Sep 17 00:00:00 2001 From: Brian Carrier <carrier@sleuthkit.org> Date: Fri, 22 Aug 2014 10:25:35 -0400 Subject: [PATCH] Added utf-8 encoding to test diff --- test/script/regression.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/script/regression.py b/test/script/regression.py index 21a5ea626a..3b331a36b3 100755 --- a/test/script/regression.py +++ b/test/script/regression.py @@ -873,8 +873,8 @@ def _compare_report_files(gold_path, output_path): unordered list in the html report files, or (0, 0) if the lenghts are the same. """ - gold_file = open(gold_path) - output_file = open(output_path) + gold_file = open(gold_path, encoding='utf-8') + output_file = open(output_path, encoding='utf-8') goldHtml = gold_file.read() outputHtml = output_file.read() goldHtml = goldHtml[goldHtml.find("<ul>"):] -- GitLab