From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753247Ab0AHCp7 (ORCPT ); Thu, 7 Jan 2010 21:45:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752965Ab0AHCp6 (ORCPT ); Thu, 7 Jan 2010 21:45:58 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:39824 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750744Ab0AHCp6 (ORCPT ); Thu, 7 Jan 2010 21:45:58 -0500 Date: Fri, 8 Jan 2010 13:45:56 +1100 From: Simon Horman To: "H. Peter Anvin" Cc: Masami Hiramatsu , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Michal Marek , Roland Dreier , Sam Ravnborg Subject: Re: [patch] Makefile: Unexport LANG Message-ID: <20100108024553.GA2465@verge.net.au> References: <20091224111300.GA31932@verge.net.au> <4B359166.3050106@redhat.com> <4B359BC0.3080808@zytor.com> <20091226112007.GB2818@verge.net.au> <20100108004117.GK2436@verge.net.au> <4B467FCB.2080101@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B467FCB.2080101@zytor.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2010 at 04:43:55PM -0800, H. Peter Anvin wrote: > On 01/07/2010 04:41 PM, Simon Horman wrote: > > On Sat, Dec 26, 2009 at 10:20:07PM +1100, Simon Horman wrote: > >> On Fri, Dec 25, 2009 at 09:14:40PM -0800, H. Peter Anvin wrote: > >>> On 12/25/2009 08:30 PM, Masami Hiramatsu wrote: > >>>>> > >>>>> # Avoid funny character set dependencies > >>>>> +unexport LANG > >>>>> unexport LC_ALL > >>>>> LC_CTYPE=C > >>>>> LC_COLLATE=C > >>>> > >>> > >>> At this point, it seems to me that we should just LC_ALL=C and be done > >>> with it (see other thread.) > >> > >> Sure, that would also work for the case that I'm seeing. > >> > >> I tested the following: > >> > >> # Avoid funny character set dependencies > >> LC_ALL=C > >> export LC_ALL > >> > >> Though personally I would advocate tweaking the locale as needed closer > >> to awk scripts and the like, rather than the high-level general change that > >> was made. Fall-out from a high-level change seems inevitable to me. > > > > This seems to still be broken. Can we decide on a solution? > > > > I think it's up to Michal to pick the preferred solution. > > It has been pointed out that one option might also to be to *not* > override LC_CTYPE, and only override LC_COLLATE. I've confirmed that both of the following allow make to give sane output for me. And they are better than my suggestion in the respect that the error messages are according to the otherwise prevailing locale, not suddenly switched to English. # Avoid funny character set dependencies unexport LC_ALL LC_COLLATE=C export LC_NUMERIC # Avoid funny character set dependencies unexport LC_ALL LC_COLLATE=C LC_NUMERIC=C export LC_COLLATE LC_NUMERIC I did not verify that they do something sensible for the awk concern that originally introduced the locale change - but I think it is unaffected by my locale settings.