]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blobdiff - scripts/boot.py
Fix commit ad69a1
[linux-conf-perf.git] / scripts / boot.py
index c12bb7978c21e090f68eb774244462bfb73971a0..5d992f1d15b3f9126fcc9365f48d83e98b00f8c8 100644 (file)
@@ -39,7 +39,7 @@ def boot(config, to_database = True):
                        txt = ''
                        for ln in out:
                                for c in ln:
-                                       if c == b'\0':
-                                               c = ' '
-                               txt += ln + '\n'
+                                       if not c.encode(sys.getdefaultencoding()) == b'\0':
+                                               txt += c
+                               txt += '\n'
                        dtb.add_measure(txt, result, config.id, value)