On 25 September 2015 at 07:33, <mariano.lo...@linux.intel.com> wrote:

>      def log(self, msg):
>          if self.logfile:
> +            # It is needed to sanitize the data received from qemu
> +            # because is possible to have control characters or Unicode
> +            msg = cmdline = "".join(filter(lambda x:x in
> string.printable, msg))
>              with open(self.logfile, "a") as f:
>                  f.write("%s" % msg)
>

cmdline looks like a copy/paste typo?

Would it be sensible in the future to support UTF-8 for the logging?

Ross
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to