Skip to content
Snippets Groups Projects
Commit 8d7c9935 authored by Michael Lumish's avatar Michael Lumish
Browse files

Merge pull request #5427 from jtattermusch/fix_gcc44_string_decode

Don't fail when generating report.xml on gcc4.4 
parents e0205e56 60ab05ac
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ def _filter_msg(msg, output_format): ...@@ -47,7 +47,7 @@ def _filter_msg(msg, output_format):
# that make XML report unparseable. # that make XML report unparseable.
filtered_msg = filter( filtered_msg = filter(
lambda x: x in string.printable and x != '\f' and x != '\v', lambda x: x in string.printable and x != '\f' and x != '\v',
msg.decode(errors='ignore')) msg.decode('UTF-8', 'ignore'))
if output_format == 'HTML': if output_format == 'HTML':
filtered_msg = filtered_msg.replace('"', '"') filtered_msg = filtered_msg.replace('"', '"')
return filtered_msg return filtered_msg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment