[rtems-central commit] util: Ignore decode errors

Sebastian Huber sebh at rtems.org
Fri Jul 29 08:43:47 UTC 2022


Module:    rtems-central
Branch:    master
Commit:    76bbce2eec9106d69de6ccb8d6553e2d091d90e3
Changeset: http://git.rtems.org/rtems-central/commit/?id=76bbce2eec9106d69de6ccb8d6553e2d091d90e3

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Oct  1 10:28:41 2021 +0200

util: Ignore decode errors

---

 rtemsspec/util.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rtemsspec/util.py b/rtemsspec/util.py
index e4c033db..a92a1eff 100644
--- a/rtemsspec/util.py
+++ b/rtemsspec/util.py
@@ -88,7 +88,7 @@ def run_command(args: List[str],
         while True:
             raw_line = task.stdout.readline()
             if raw_line:
-                line = raw_line.decode("utf-8").rstrip()
+                line = raw_line.decode("utf-8", "ignore").rstrip()
                 if stdout is None:
                     logging.debug("%s", line)
                 else:



More information about the vc mailing list