From patchwork Fri Dec 12 20:04:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas De Schampheleire X-Patchwork-Id: 420671 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 80C49140082 for ; Sat, 13 Dec 2014 07:06:38 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CD31A929DB; Fri, 12 Dec 2014 20:06:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eijj5e3R4wob; Fri, 12 Dec 2014 20:06:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 7C35692B0E; Fri, 12 Dec 2014 20:06:00 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6AB761C2187 for ; Fri, 12 Dec 2014 20:05:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5B43A92AB0 for ; Fri, 12 Dec 2014 20:05:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TCNnCq2fFX7c for ; Fri, 12 Dec 2014 20:05:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1D23F929E9 for ; Fri, 12 Dec 2014 20:05:40 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id x12so9944084wgg.25 for ; Fri, 12 Dec 2014 12:05:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gvRfUjV+G8cXeSdkGEymE2MnoieThxwstrGKtIcFR9c=; b=UWlUMEROh14YG503+A4UNbmgyMJ98DdETdYXyVOYk7EbFF2iMKrRSJOJOPzwQ0QwZT 0m1i40IQ89E37mcbKFwafjqKEP5VseMybQTgo40rNDEhdILmQd4I0ke/HiHyOUpqk+H4 m5cmQpDbqygKrAuXQeTt7En0/KnrOVM1+zEjg8wLCipfT5iGw1fnSdaFF6SMpx8NgrEU 1roMWCBpvzQW1hpwA5Zcl3EKjwZ9Sd2EQyCi+y6aEkxGU+jMVALX7jCOjFGMrS4I2wXU ZKtvIU5zDEmsexKyimhymMH6VVO7CfagAFPw/JSWDfoNijQiyT6zt2uUHvm44uI+JYUf kojQ== X-Received: by 10.180.90.176 with SMTP id bx16mr10943720wib.0.1418414738771; Fri, 12 Dec 2014 12:05:38 -0800 (PST) Received: from localhost.localdomain (alc112.alcatel.be. [195.207.101.112]) by mx.google.com with ESMTPSA id p1sm3054831wjy.22.2014.12.12.12.05.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Dec 2014 12:05:37 -0800 (PST) From: Thomas De Schampheleire To: thomas.petazzoni@free-electrons.com, buildroot@buildroot.org Date: Fri, 12 Dec 2014 21:04:51 +0100 Message-Id: <1418414696-32584-7-git-send-email-patrickdepinguin@gmail.com> X-Mailer: git-send-email 1.8.5.1 In-Reply-To: <1418414696-32584-1-git-send-email-patrickdepinguin@gmail.com> References: <1418414696-32584-1-git-send-email-patrickdepinguin@gmail.com> Cc: Thomas De Schampheleire Subject: [Buildroot] [PATCH v5 06/11] autobuild-run: set LC_ALL=C to not use locale settings of host machine X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Thomas De Schampheleire If the host machine running autobuild-run happens to have set a non-English locale, the error messages will be displayed in that language too. For public results like those generated in the Buildroot autobuilders, this is a problem. Therefore, set LC_ALL to a fixed locale (C) at the beginning of the script. Signed-off-by: Thomas De Schampheleire --- scripts/autobuild-run | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/autobuild-run b/scripts/autobuild-run index ab53d3f..d085029 100755 --- a/scripts/autobuild-run +++ b/scripts/autobuild-run @@ -48,8 +48,6 @@ # of just using the last 500 lines of the build log, search the # start of the build of the failing package. # -# - Add LC_ALL=C where appropriate. -# # - Include the config.log file (when it exists) in the tarball for # failed builds when the failure occurs on an autotools package. # @@ -602,6 +600,11 @@ def merge(dict_1, dict_2): for key in set(dict_2) | set(dict_1)) def main(): + + # Avoid locale settings of autobuilder machine leaking in, for example + # showing error messages in another language. + os.environ['LC_ALL'] = 'C' + check_version() sysinfo = SystemInfo()