From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 13 Apr 2017 15:16:15 -0600 Subject: [U-Boot] [PATCH 2/2] dtoc: Decode val if it's a byte string In-Reply-To: References: <20170330144425.19997-1-george.mccollister@gmail.com> <20170330144425.19997-2-george.mccollister@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 31 March 2017 at 22:23, Simon Glass wrote: > On 30 March 2017 at 08:44, George McCollister > 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 >> --- >> tools/dtoc/fdt_util.py | 2 ++ >> 1 file changed, 2 insertions(+) > > Acked-by: Simon Glass Applied to u-boot-dm, thanks!