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: 9786243 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E38C360325 for ; Wed, 14 Jun 2017 12:45:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3D7C20223 for ; Wed, 14 Jun 2017 12:45:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C88A423D5E; Wed, 14 Jun 2017 12:45:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A3B820223 for ; Wed, 14 Jun 2017 12:45:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752520AbdFNMlJ (ORCPT ); Wed, 14 Jun 2017 08:41:09 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:59121 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752394AbdFNMlH (ORCPT ); Wed, 14 Jun 2017 08:41:07 -0400 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 Cc: linux-kbuild@vger.kernel.org, Michal Marek , Masahiro Yamada , linux-snps-arc@lists.infradead.org, Alexey Brodkin , Vineet Gupta 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 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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