Skip to content

Commit 0b7e423

Browse files
committed
Merge pull request CGAL#6210 from lrineau/Testsuite-fix__parse-ctest-dashboard-xml.py-GF
CTest Testsuite: resilience to non-UTF8 characters
2 parents c6bd7dd + 3e8fdc6 commit 0b7e423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Testsuite/test/parse-ctest-dashboard-xml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def open_file_create_dir(filename, mode_, *args, **kwargs):
5656
if 'encoding' in t_output.attrib and t_output.attrib['encoding'] == 'base64':
5757
t_output_value = base64.standard_b64decode(t_output_value)
5858
if 'compression' in t_output.attrib and t_output.attrib['compression'] == 'gzip':
59-
t_output_value = zlib.decompress(t_output_value).decode("utf-8")
59+
t_output_value = zlib.decompress(t_output_value).decode("utf-8", 'backslashreplace')
6060
tests[tests_ids[t.find('FullName').text]] = \
6161
{ \
6262
"Name": t.find('Name').text, \

0 commit comments

Comments
 (0)