All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] dtoc: Decode val if it's a byte string
Date: Thu, 13 Apr 2017 15:16:15 -0600	[thread overview]
Message-ID: <CAPnjgZ1Wtas1Fyao7UtttuKVtaXX1_u9Kf0tQFmDLaD7XgA1XQ@mail.gmail.com> (raw)
In-Reply-To: <CAPnjgZ3+CHknmEEhjFqyC-s02cUKciE7if3n0pBjvEe+2kvzyQ@mail.gmail.com>

On 31 March 2017 at 22:23, Simon Glass <sjg@chromium.org> wrote:
> On 30 March 2017 at 08:44, George McCollister
> <george.mccollister@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@gmail.com>
>> ---
>>  tools/dtoc/fdt_util.py | 2 ++
>>  1 file changed, 2 insertions(+)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!

  reply	other threads:[~2017-04-13 21:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30 14:44 [U-Boot] [PATCH 1/2] patman: Convert byte arrays to strings George McCollister
2017-03-30 14:44 ` [U-Boot] [PATCH 2/2] dtoc: Decode val if it's a byte string George McCollister
2017-04-01  4:23   ` Simon Glass
2017-04-13 21:16     ` Simon Glass [this message]
2017-04-01  4:23 ` [U-Boot] [PATCH 1/2] patman: Convert byte arrays to strings Simon Glass
2017-04-13 21:16   ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPnjgZ1Wtas1Fyao7UtttuKVtaXX1_u9Kf0tQFmDLaD7XgA1XQ@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.