[elbe-devel] [PATCH v2 23/27] log: also filter CTRL-H (BS)

Torben Hohn torben.hohn at linutronix.de
Thu Sep 24 16:56:20 CEST 2020


soap does not like xml incompatible strings.

Also Filter CTRL-H which is emitted by mkfs.ext4, for example.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/log.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elbepack/log.py b/elbepack/log.py
index db3b4d246..e81559f43 100644
--- a/elbepack/log.py
+++ b/elbepack/log.py
@@ -269,6 +269,7 @@ class AsyncLogging(object):
 
                 # filter out ansi sequences.
                 logbuf = re.sub('\u001b\[.*?[@-~]', '', logbuf)
+                logbuf = re.sub('\u0008', '', logbuf)
 
                 self.stream.info(logbuf)
 
-- 
2.20.1



More information about the elbe-devel mailing list