From patchwork Mon Sep 8 12:45:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 2675 Received: (qmail 9709 invoked by alias); 8 Sep 2014 12:46:14 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 9674 invoked by uid 89); 8 Sep 2014 12:46:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Message-ID: <540DA507.2090400@redhat.com> Date: Mon, 08 Sep 2014 14:45:59 +0200 From: Florian Weimer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: GNU C Library Subject: [PATCH] Remove locale-related environment variables from subprocess environments This avoids a few testsuite failures if the user has set such variables. From a70c397f88315bd66f28aaf1471e9b37d774c95f Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 8 Sep 2014 14:15:29 +0200 Subject: Remove locale-related environment variables from subprocess environments This avoids a few testsuite failures if the user has set such variables. --- ChangeLog | 10 ++++++++++ Makeconfig | 27 +++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) 2014-09-08 Florian Weimer * Makeconfig (.NOEXPORT): Remove, no longer supported by GNU Make. (CHARSET, GCONV_PATH, I18NPATH, LANG, LANGUAGE, LANGUAGES, LC_ADDRESS, LC_ALL, LC_COLLATE, LC_CTYPE, LC_IDENTIFICATION, LC_MEASUREMENT, LC_MESSAGES, LC_MONETARY, LC_NAME, LC_NUMERIC, LC_PAPER, LC_TELEPHONE, LC_TIME, LOCPATH, NLSPATH, OUTPUT_CHARSET): Unexport (and implicitly clear) environment variables diff --git a/Makeconfig b/Makeconfig index 0f8069b..2bb9e9f 100644 --- a/Makeconfig +++ b/Makeconfig @@ -760,8 +760,31 @@ endif #### End of configuration variables. #### -# This tells some versions of GNU make before 3.63 not to export all variables. -.NOEXPORT: +# Unexport (and thus implicitly clear) locale-related environment +# variables. +unexport CHARSET +unexport GCONV_PATH +unexport I18NPATH +unexport LANG +unexport LANGUAGE +unexport LANGUAGES +unexport LC_ADDRESS +unexport LC_ALL +unexport LC_COLLATE +unexport LC_CTYPE +unexport LC_IDENTIFICATION +unexport LC_MEASUREMENT +unexport LC_MESSAGES +unexport LC_MONETARY +unexport LC_NAME +unexport LC_NUMERIC +unexport LC_PAPER +unexport LC_TELEPHONE +unexport LC_TIME +unexport LOCPATH +unexport NLSPATH +unexport OUTPUT_CHARSET + # We want to echo the commands we're running without # umpteen zillion filenames along with it (we use `...' instead) -- 1.9.3