[U-Boot] [PATCH 2/2] dtoc: Decode val if it's a byte string
    Simon Glass 
    sjg at chromium.org
       
    Thu Apr 13 21:16:15 UTC 2017
    
    
  
On 31 March 2017 at 22:23, Simon Glass <sjg at chromium.org> wrote:
> On 30 March 2017 at 08:44, George McCollister
> <george.mccollister at gmail.com> wrote:
>> With Python 3.5.2 encode will throw an exception if val is a byte array.
>> Decode it to a string first. This assumes it's utf-8, if it's not valid
>> utf-8 it will throw an exception.
>>
>> Signed-off-by: George McCollister <george.mccollister at gmail.com>
>> ---
>>  tools/dtoc/fdt_util.py | 2 ++
>>  1 file changed, 2 insertions(+)
>
> Acked-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm, thanks!
    
    
More information about the U-Boot
mailing list