diff --git a/src/fprime/fbuild/cmake.py b/src/fprime/fbuild/cmake.py index f4b66b60..1442f044 100644 --- a/src/fprime/fbuild/cmake.py +++ b/src/fprime/fbuild/cmake.py @@ -619,7 +619,11 @@ def _communicate(proc, stdout, stderr, print_output=True): for key, _ in events: appendable, stream = key.data try: - line = key.fileobj.readline().decode().replace("\r\n", "\n") + line = ( + key.fileobj.readline() + .decode(errors="replace") + .replace("\r\n", "\n") + ) # Some systems (like running inside Docker) raise an io error instead of returning "" when the device # is ended. Not sure why this is, but the effect is the same, on IOError assume end-of-input except OSError: