From patchwork Wed Jun 14 12:40:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 775765 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wnmTs5GYKz9s7B for ; Wed, 14 Jun 2017 22:41:37 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="bG5Ds9al"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=WRDvcypOs8ZwccOZR4fhP8n4CA0TaAvb8gYJWH9zZwc=; b=bG5 Ds9alTvtFMVHlry2zB2FEdEhAFRLgMXc8GIZuiMfZGGTPyv5HpTRvbEeFzR2iK4ECzKqfYEkDP1fG b3Qr8iC2dfenDwNmEqjIXIK4LIpLc/81NKXUFf8ShcMQeHGWn0MuV635sDUPBobCZ40YjjzerVOd6 TPD1/mod1AJOKjcp6ldNFHoAe5uMWpjOx08AIKGhYdRkjXbTj+N/mM5/0lsvfCG4JgRvCMu6Ukbck uWUTL16mgDuHRC2fbnKbON7W9jOoNSV0tgdxWMlxOwjceijgsFrfasSXsCy191/rQTPVxqAsMTyeK y7NULZqh7taLHXZjLOWk4MgMy2d31Tg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dL7c8-0007fs-Ci; Wed, 14 Jun 2017 12:41:36 +0000 Received: from smtprelay.synopsys.com ([198.182.60.111]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dL7c0-0007Fx-NP for linux-snps-arc@lists.infradead.org; Wed, 14 Jun 2017 12:41:34 +0000 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id 3194610C1130; Wed, 14 Jun 2017 05:41:07 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 1BEBE22D; Wed, 14 Jun 2017 05:41:07 -0700 (PDT) Received: from abrodkin-7440l.internal.synopsys.com (abrodkin-7440l.internal.synopsys.com [10.121.8.122]) by mailhost.synopsys.com (Postfix) with ESMTP id F166A1A9; Wed, 14 Jun 2017 05:41:04 -0700 (PDT) From: Alexey Brodkin To: linux-kernel@vger.kernel.org Subject: [PATCH] Unexport LANG env variable Date: Wed, 14 Jun 2017 15:40:56 +0300 Message-Id: <1497444056-24962-1-git-send-email-abrodkin@synopsys.com> X-Mailer: git-send-email 2.7.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170614_054128_810033_F63EEEF3 X-CRM114-Status: UNSURE ( 5.15 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kbuild@vger.kernel.org, Vineet Gupta , Alexey Brodkin , Masahiro Yamada , Michal Marek , linux-snps-arc@lists.infradead.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org In those cases when we parse output of standard utilities like readelf etc we rely on a particular sentences. For example for ARC we extract an entry-point from vmlinux like that: ---------------------->8-------------------- readelf -h vmlinux | grep "Entry point address" | grep -o 0x.* ---------------------->8-------------------- And in case LANG is set to anything other than en_XX we're getting nothing and subsequent execution of mkimage utility fails. Probably there're more cases like that but given people rarely use non-English locales on their dev machines problems like the one above are not very visible. Signed-off-by: Alexey Brodkin Cc: Vineet Gupta --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index cdaa747f2a6a..581e684783ef 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ MAKEFLAGS += -rR --include-dir=$(CURDIR) # Avoid funny character set dependencies unexport LC_ALL +unexport LANG LC_COLLATE=C LC_NUMERIC=C export LC_COLLATE LC_NUMERIC