* [U-Boot] [PATCH 1/1] buildman: Translate more strings to latin-1
@ 2017-04-14 14:58 Tom Rini
2017-04-14 16:19 ` Simon Glass
0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2017-04-14 14:58 UTC (permalink / raw)
To: u-boot
When writing out some of our results we may now have UTF-8 characters
in there as well. Translate these to latin-1 and ignore any errors (as
this is for diagnostic and given the githash anything else can be
reconstructed by the user.
Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
tools/buildman/builderthread.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py
index f2b2acd1eba9..acaf5007f50c 100644
--- a/tools/buildman/builderthread.py
+++ b/tools/buildman/builderthread.py
@@ -280,13 +280,13 @@ class BuilderThread(threading.Thread):
outfile = os.path.join(build_dir, 'log')
with open(outfile, 'w') as fd:
if result.stdout:
- fd.write(result.stdout)
+ fd.write(result.stdout.encode('latin-1', 'ignore'))
errfile = self.builder.GetErrFile(result.commit_upto,
result.brd.target)
if result.stderr:
with open(errfile, 'w') as fd:
- fd.write(result.stderr)
+ fd.write(result.stderr.encode('latin-1', 'ignore'))
elif os.path.exists(errfile):
os.remove(errfile)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 1/1] buildman: Translate more strings to latin-1
2017-04-14 14:58 [U-Boot] [PATCH 1/1] buildman: Translate more strings to latin-1 Tom Rini
@ 2017-04-14 16:19 ` Simon Glass
2017-04-14 21:10 ` Tom Rini
0 siblings, 1 reply; 3+ messages in thread
From: Simon Glass @ 2017-04-14 16:19 UTC (permalink / raw)
To: u-boot
On 14 April 2017 at 08:58, Tom Rini <trini@konsulko.com> wrote:
> When writing out some of our results we may now have UTF-8 characters
> in there as well. Translate these to latin-1 and ignore any errors (as
> this is for diagnostic and given the githash anything else can be
> reconstructed by the user.
>
> Cc: Simon Glass <sjg@chromium.org>
> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
> tools/buildman/builderthread.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 1/1] buildman: Translate more strings to latin-1
2017-04-14 16:19 ` Simon Glass
@ 2017-04-14 21:10 ` Tom Rini
0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2017-04-14 21:10 UTC (permalink / raw)
To: u-boot
On Fri, Apr 14, 2017 at 10:19:36AM -0600, Simon Glass wrote:
> On 14 April 2017 at 08:58, Tom Rini <trini@konsulko.com> wrote:
> > When writing out some of our results we may now have UTF-8 characters
> > in there as well. Translate these to latin-1 and ignore any errors (as
> > this is for diagnostic and given the githash anything else can be
> > reconstructed by the user.
> >
> > Cc: Simon Glass <sjg@chromium.org>
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> > ---
> > tools/buildman/builderthread.py | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170414/efeac794/attachment.sig>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-14 21:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-14 14:58 [U-Boot] [PATCH 1/1] buildman: Translate more strings to latin-1 Tom Rini
2017-04-14 16:19 ` Simon Glass
2017-04-14 21:10 ` Tom Rini
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.