[OE-core] [PATCH] oepydevshell-internal.py: decode only when readdata is valid

Burton, Ross ross.burton at intel.com
Tue Nov 13 11:10:33 UTC 2018


On Tue, 13 Nov 2018 at 10:03, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:

> Usually you'd write this as:
>
> if readdata:
>     i = i + readdata.decode('utf-8')
>
> Is there a reason not to do that here?

Whilst this code is being changed, is there a chance of getting a
partial read that has half of a utf-8 byte sequence?

Ross


More information about the Openembedded-core mailing list