diff --git a/compiler-rt/test/sanitizer_common/remote_interfaces/hdc.py b/compiler-rt/test/sanitizer_common/remote_interfaces/hdc.py index c99f73b77cc1b9c4ba54d85605afd41d4268d00e..ab8c0c4d0dab83204eabbf3936a3055cf4afaf4f 100644 --- a/compiler-rt/test/sanitizer_common/remote_interfaces/hdc.py +++ b/compiler-rt/test/sanitizer_common/remote_interfaces/hdc.py @@ -61,7 +61,7 @@ def pull_from_device(path): tmp = tempfile.mktemp() hdc(['file', 'recv', path, tmp], attempts=5, check_stdout='FileTransfer finish') - text = open(tmp, 'r').read() + text = open(tmp, 'r', errors='replace').read() os.unlink(tmp) return text