From patchwork Thu Jun 8 01:07:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 772753 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wjnMk3hklz9s7M for ; Thu, 8 Jun 2017 11:07:29 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Yg1M1a/o"; dkim-atps=neutral Received: by lists.denx.de (Postfix, from userid 105) id 15DE6C21CAE; Thu, 8 Jun 2017 01:07:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A7997C21C28; Thu, 8 Jun 2017 01:07:21 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 40433C21C28; Thu, 8 Jun 2017 01:07:20 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by lists.denx.de (Postfix) with ESMTPS id D672DC21C25 for ; Thu, 8 Jun 2017 01:07:19 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id v104so2493450wrb.0 for ; Wed, 07 Jun 2017 18:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=na7ohqJihzOhMqmPykp2AIyD05lCeNyHwtihwmOk+x0=; b=Yg1M1a/oYp6M+sOzq7Lsk09QHrMWmyzbwD8nV0g1Wwf/PPwoXBJkKuNwjVU5vEs3/B 3pOwhjYc7G4t9Ej83uylCyjl2qGOc1FqB+rtzPeruCTfVjWxegK5v+hjUmYWutLufT6b 4SX+5AyIIhMFX5dyUarF5VWoUEGCls3P3oYAJcxK2tH38PrDfYXy/WosABfxxSZWSFmv JeUHtUiPSgILOR1M62LWOWu3SnzwdGKZH0kyNWBA7AdNaLthnnoGUKnk2gXsV676VqUK xxpA5MB/Rd7kbU+F2pElJS8dCA/Bx4vNXws9Ij2n9nu0+gk1crZyP/Au7ayoD7HdjM1j ATtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=na7ohqJihzOhMqmPykp2AIyD05lCeNyHwtihwmOk+x0=; b=h3P9G+Ud0RjE+NydREtS7aS8IgXcBfWFKxrGpuM2d2lSUah3E4JSqalcNiR5PULG4h b1VWSqZGKWEbNkAH3Zf+/VoKTmgCTOAU5DCjg0VYYGPBy4gglYXVVY2YiRSqSPflDfBn FWE1r0tqu9C+dUCBPG+FMxRjCPH1DTgklGOcy7p5o0th4L/8NFPgvIOiSwym+j9Ev8ES 0Wi0VIBY/Es6wK2af9Xqich68C/iVxj06ytQV5mOOkY64GKOE/kDtI7obfobqh0H8gwn wNkbEHLMqV6OXGJBvx1YHU8FYNB2zL7tI01Jzmj9S/sUIrlbvX7v2YQaE7VExh307z2W rpSQ== X-Gm-Message-State: AODbwcCplKjmiNTkl5TyYL2iYgqj4bPq0i8x1ZjVkbX9mj6wDq+MrRa2 9eNLotvH2RuObxlP X-Received: by 10.223.154.233 with SMTP id a96mr22689548wrc.139.1496884039249; Wed, 07 Jun 2017 18:07:19 -0700 (PDT) Received: from workstation.zombienet.local (p2003005F2C2C8800982ACC5723F6B53B.dip0.t-ipconnect.de. [2003:5f:2c2c:8800:982a:cc57:23f6:b53b]) by smtp.gmail.com with ESMTPSA id v13sm5101202wmd.5.2017.06.07.18.07.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 18:07:18 -0700 (PDT) From: Daniel Schwierzeck To: u-boot@lists.denx.de Date: Thu, 8 Jun 2017 03:07:07 +0200 Message-Id: <20170608010709.28197-1-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170607121901.16873-1-daniel.schwierzeck@gmail.com> References: <20170607121901.16873-1-daniel.schwierzeck@gmail.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 0/2] Fix unicode handling in buildman X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This series fixes and optimizes the unicode handling in buildman. It's based on the similar series for patman and applies on top of u-boot-dm/master. This has been tested by forcibly adding unicode characters in the stdout and stderr stream. Examples: The patch called with `tools/buildman/buildman -P sandbox` results in stderr: arch/sandbox/cpu/os.c: In function ?os_read_no_block?: arch/sandbox/cpu/os.c:43:13: warning: unused variable ?dummy? [-Wunused-variable] const char dummy[] = "aaa??cc"; ^ Daniel Schwierzeck (2): buildman: disable localized and unicode output of all build tools buildman: properly translate strings for log and err files to ASCII tools/buildman/builderthread.py | 6 ++++-- tools/buildman/toolchain.py | 6 +++++- 2 files changed, 9 insertions(+), 3 deletions(-) --- a/arch/arm/config.mk +++ b/arch/arm/config.mk @@ -69,7 +69,7 @@ checkgcc6: @if test "$(call cc-name)" = "gcc" -a \ "$(call cc-version)" -lt "0600"; then \ echo -n '*** Your GCC is older than 6.0 and will not be '; \ - echo 'supported starting in v2018.01.'; \ + echo 'supported starting in v2018.01.'; \ fi called with `tools/buildman/buildman -P xilinx_zynqmp_ep` results in stdout: *** Your GCC is older than 6.0 and will not be supported starting ? in v2018.01. The patch --- a/arch/sandbox/cpu/os.c +++ b/arch/sandbox/cpu/os.c @@ -40,6 +40,7 @@ ssize_t os_read(int fd, void *buf, size_t count) ssize_t os_read_no_block(int fd, void *buf, size_t count) { const int flags = fcntl(fd, F_GETFL, 0); + const char dummy[] = "aaacc"; fcntl(fd, F_SETFL, flags | O_NONBLOCK); return os_read(fd, buf, count);