From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6487873561298993152 X-Received: by 10.46.25.90 with SMTP id p87mr618096lje.1.1511254626349; Tue, 21 Nov 2017 00:57:06 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.42.193 with SMTP id q184ls83089ljq.13.gmail; Tue, 21 Nov 2017 00:57:06 -0800 (PST) X-Google-Smtp-Source: AGs4zMYPEu6PAGnbCyULtoJgbRoCOvVU5wvxYUMAWOEslUsv+5sDR+RfBAcSJA6F2XU4vH4wI9A2 X-Received: by 10.25.31.13 with SMTP id f13mr474416lff.16.1511254626080; Tue, 21 Nov 2017 00:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511254626; cv=none; d=google.com; s=arc-20160816; b=k07RvQTVzbKuippINAk+hmDVyU4GvSzLWCIScomdeTnUs1vu7v3tzlJjZzfvEsxk15 WRwhYDg8TG8c3s44a59yxCRWScb19nvSfiFCJC7Wd3ENuKcgf6jSHQxxy+p2cpAkZRcj L3Hg/Jk7DoS6itvn9IWG/I37QMaV/3cuH3oqxWlL1mn5skU9w9wSnC6Ddlk83umbpm00 1f1CvH3qB9rF0Hufk+PZNOJr885h03TeOVjFajQFmKn+Vj5be7AQIeB0Llf/jkDzuX6i YwTFpmOlQUR1ZmhrV4Njx6B1HRxkBjLf//+YP6iDFuoW16MB6KoD58m7HcrB6u2OlXWT QhLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :arc-authentication-results; bh=5iGb9cTN2Ba4VZkg8QVoPbx3d3HqcOkaHZ/rB5Z2w8k=; b=u7X19fNyEwPQPeoZv5JNZ5q6Cf2faMoDf2fUIZBwSrAxZr96hsEbiySmG2PrSIFpg8 xjcgxU07fhJ4HR1TO6kPzQT5OJZRFA4udzwOJ+/w0mn5e5FmiZGZHKJbpbq283qLqIF2 NCZ96I4QOKUN+scfCMfPk+omKb/xQ2N1FAvhMBEsTXr1/4mhZeePdwkwoF2Qdr7BTXfq eHNH8ylNdUpKoaYHACBbhZYXkMdwcbgWrqER8dFumlqBDccqjstsMTJ+k12548fgGWcl wAi+wxs3k0fE7J15ZBoHi1Qj5cRLe5Sna/5H3atRSNrfTBnxwBlQ2DPMR7ys/nV5Ot+F 4wZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id o75si851021lfc.2.2017.11.21.00.57.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Nov 2017 00:57:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id vAL8v21q032707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 21 Nov 2017 09:57:04 +0100 Subject: Re: [PATCH] build.sh: Fix perl complaints about locale To: Henning Schild Cc: isar-users@googlegroups.com References: <20171113122151.19409-1-christian.storm@siemens.com> <00f7d3a1-8aab-ac7b-6d30-289de2dfa036@ilbers.de> <20171121094213.0f32a817@md1em3qc> From: Alexander Smirnov Message-ID: Date: Tue, 21 Nov 2017 11:56:57 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171121094213.0f32a817@md1em3qc> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: ywdDzS1h/bmt On 11/21/2017 11:42 AM, Henning Schild wrote: > Am Fri, 17 Nov 2017 13:42:05 +0300 > schrieb Alexander Smirnov : > >> Hi, >> >> On 11/13/2017 03:21 PM, Christian Storm wrote: >>> The log.do_build is flooded by perl's locale complaints: >>> >>> perl: warning: Setting locale failed. >>> perl: warning: Please check that your locale settings: >>> LANGUAGE = (unset), >>> LC_ALL = "en_US.UTF-8", >>> LANG = (unset) >>> are supported and installed on your system. >>> perl: warning: Falling back to the standard locale ("C"). >>> >>> Make perl happy by explicitly giving it the C locale. >>> >>> Signed-off-by: Christian Storm >>> --- >>> meta/recipes-devtools/buildchroot/files/build.sh | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/meta/recipes-devtools/buildchroot/files/build.sh >>> b/meta/recipes-devtools/buildchroot/files/build.sh index >>> 19d554e..e53d359 100644 --- >>> a/meta/recipes-devtools/buildchroot/files/build.sh +++ >>> b/meta/recipes-devtools/buildchroot/files/build.sh @@ -23,4 +23,4 >>> @@ for i in configure aclocal.m4 Makefile.am Makefile.in; do done >>> >>> # Build the package >>> -dpkg-buildpackage >>> +LC_ALL=C LANGUAGE=C LANG=C dpkg-buildpackage >>> >> >> short question, does LC_ALL override LANG value? > > No. Try "LC_ALL=C locale", as the name says it overrides LC_*. But you > are right LC_ALL might be enough to get rid of the warnings. I'm asking because it's not so clear for me. What I've got from various links, LC_ALL overrides LANG: https://docs.oracle.com/cd/E23824_01/html/E26033/glmbx.html ... If the LC_ALL environment variable is set, it overrides LANG and all the separate locale categories. ... https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html ... LC_ALL is an environment variable that overrides all of these... As a user, you therefore have to unset this variable if you want to set LANG and optionally some of the other LC_xxx variables. ... https://wiki.archlinux.org/index.php/locale#LC_ALL:_troubleshooting ... The locale set for this variable will always override LANG and all the other LC_* variables, whether they are set or not. ... And so on... I wonder if there is some reference place where it's strictly defined whether or not LC_ALL overrides LAND. Alex