From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6487873561298993152 X-Received: by 10.80.142.245 with SMTP id x50mr5846554edx.0.1511287474017; Tue, 21 Nov 2017 10:04:34 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.241.28 with SMTP id w28ls520892edl.0.gmail; Tue, 21 Nov 2017 10:04:33 -0800 (PST) X-Google-Smtp-Source: AGs4zMaSZtUEfIjuj5XpN/RZLMuJIdyn8SteWcyYxUR+EnO4QlHbycYKSgzxr+OcPkQkOCL2LHCr X-Received: by 10.80.163.200 with SMTP id t8mr5826545edb.1.1511287473656; Tue, 21 Nov 2017 10:04:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511287473; cv=none; d=google.com; s=arc-20160816; b=imOg1u75wA/BeXw/a9rKHoydrQLBice0usB+GKiDc7nLsBV2Bn05K1idZkmLXu+9Bc peG4LICNNaBjg2ls8HIqobAY7byTyMGT6MlLqVs9v527Gu2P0+F3l1O25vA7uGL9NA8n qFtHWKnx8gWWYmoQkndGYUI8Ti0sCge4MgI0409yFDr+ppYeijDhpgjQjKRDckKHlXdh 0ZH3Y0Cq6alPk4SSep6l6Xr/SSIAQU/DVKLF3zw/1VnT7Sgu6x6zISttkApoFZqjZ7Eo grXMP6I2ZDzTfwMTS9oPgTGGsMul0W195NNPXnzb/NboTLhHCfNPIplUwMMxIy1FVlN4 zmDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=Z/YKddCStGmGi3n5GAj/a1xD16zDcuY1wnd8dflWcK0=; b=IoZcpbsc7bFCpifHErg6Mchp5GDf5RaeJm6NM585Frsb9lHNalnlDgm1oY5tbkc5XN Kl2CtcLCjUye8d418QgeqiU91TYDvm4AOb583LXPODxaN4/pPshCANHz4DfZCCAhPtgz SmZ2lVAvzcQH53RwyiPYgRNfQHTMhn+a1/2pV9/yYZ5o6unnhWK8CeXxgxDmaY9CvzLI VJ8mhfXNcsJYxPMPjNc2Dxqw8dcval7/wuFVQj47PeJdZhHemRtXk2dU5as5vf6FbGiX 5VhX4OEEz0q8g92cG6FEhyWv4CLniG3cjE6U2jJ6jNTb7Eb0iHizfEWmYIl+syD8U6VM 3NwQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id h23si1474561ede.4.2017.11.21.10.04.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Nov 2017 10:04:33 -0800 (PST) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id vALI4Wnf010403 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Nov 2017 19:04:33 +0100 Received: from md1em3qc ([139.25.68.40]) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id vALI4WJT025543; Tue, 21 Nov 2017 19:04:32 +0100 Date: Tue, 21 Nov 2017 19:04:49 +0100 From: Henning Schild To: Alexander Smirnov Cc: Subject: Re: [PATCH] build.sh: Fix perl complaints about locale Message-ID: <20171121190449.4927caa8@md1em3qc> In-Reply-To: References: <20171113122151.19409-1-christian.storm@siemens.com> <00f7d3a1-8aab-ac7b-6d30-289de2dfa036@ilbers.de> <20171121094213.0f32a817@md1em3qc> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: k9ghLB/UumMl Am Tue, 21 Nov 2017 11:56:57 +0300 schrieb Alexander Smirnov : > 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. Ah sorry i read it wrong. LC_ALL sets the others, not sure which one is the strongest. But why does it matter? You control all 3 and likely setting LC_ALL will mute the warning. Henning > Alex