From: Alexey Brodkin <Alexey.Brodkin@synopsys.com> To: linux-kernel@vger.kernel.org Cc: linux-kbuild@vger.kernel.org, Michal Marek <mmarek@suse.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, linux-snps-arc@lists.infradead.org, Alexey Brodkin <Alexey.Brodkin@synopsys.com>, Vineet Gupta <Vineet.Gupta1@synopsys.com> Subject: [PATCH] Unexport LANG env variable Date: Wed, 14 Jun 2017 15:40:56 +0300 [thread overview] Message-ID: <1497444056-24962-1-git-send-email-abrodkin@synopsys.com> (raw) 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 <abrodkin@synopsys.com> Cc: Vineet Gupta <vgupta@synopsys.com> --- 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 -- 2.7.5
WARNING: multiple messages have this Message-ID (diff)
From: Alexey.Brodkin@synopsys.com (Alexey Brodkin) To: linux-snps-arc@lists.infradead.org Subject: [PATCH] Unexport LANG env variable Date: Wed, 14 Jun 2017 15:40:56 +0300 [thread overview] Message-ID: <1497444056-24962-1-git-send-email-abrodkin@synopsys.com> (raw) 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 <abrodkin at synopsys.com> Cc: Vineet Gupta <vgupta at synopsys.com> --- 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 -- 2.7.5
next reply other threads:[~2017-06-14 12:41 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-06-14 12:40 Alexey Brodkin [this message] 2017-06-14 12:40 ` [PATCH] Unexport LANG env variable Alexey Brodkin 2017-06-14 13:02 ` Michal Marek 2017-06-14 13:02 ` Michal Marek 2017-06-14 13:11 ` Alexey Brodkin 2017-06-14 13:11 ` Alexey Brodkin 2017-06-14 13:11 ` Alexey Brodkin 2017-06-16 0:29 ` Masahiro Yamada 2017-06-16 0:29 ` Masahiro Yamada 2017-06-16 0:29 ` Masahiro Yamada
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1497444056-24962-1-git-send-email-abrodkin@synopsys.com \ --to=alexey.brodkin@synopsys.com \ --cc=Vineet.Gupta1@synopsys.com \ --cc=linux-kbuild@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-snps-arc@lists.infradead.org \ --cc=mmarek@suse.com \ --cc=yamada.masahiro@socionext.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.