Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936349AbZLQENW (ORCPT ); Wed, 16 Dec 2009 23:13:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S936218AbZLQEMr (ORCPT ); Wed, 16 Dec 2009 23:12:47 -0500 Received: from static-71-162-243-5.phlapa.fios.verizon.net ([71.162.243.5]:33733 "EHLO grelber.thyrsus.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936338AbZLQEMi (ORCPT ); Wed, 16 Dec 2009 23:12:38 -0500 From: Rob Landley Organization: Boundaries Unlimited To: "H. Peter Anvin" Subject: Re: CONFIG_KPROBES=y build requires gawk Date: Wed, 16 Dec 2009 22:12:31 -0600 User-Agent: KMail/1.11.2 (Linux/2.6.28-16-generic; KDE/4.2.2; x86_64; ; ) Cc: Masami Hiramatsu , Roland Dreier , Andrew Isaacson , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org References: <20091216235617.GA12267@hexapodia.org> <4B29A686.9070603@redhat.com> <4B29A93D.40207@zytor.com> In-Reply-To: <4B29A93D.40207@zytor.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200912162212.32631.rob@landley.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2083 Lines: 45 On Wednesday 16 December 2009 21:45:01 H. Peter Anvin wrote: > On 12/16/2009 07:33 PM, Masami Hiramatsu wrote: > > Roland Dreier wrote: > >> Is there any reason not to apply the patch below, to allow more awk > >> implementations to be used? After all, it's not like we're going to put > >> non-ASCII characters into the map file... > > > > Actually, the reason why I decided to use character classes is > > [a-z] wasn't same as [[:lower:]] on some environment. > > > > For example, before the POSIX standard, to match alphanumeric > > charac- ters, you would have had to write /[A-Za-z0-9]/. If your > > character set had other alphabetic characters in it, this would not > > match them, and if your character set collated differently from ASCII, > > this might not even match the ASCII alphanumeric characters. With the > > POSIX character classes, you can write /[[:alnum:]]/, and this matches > > the alphabetic and numeric characters in your character set, no matter > > what it is. > > > > It seems that "your character set" doesn't mean "what character set are > > used in the data", it means "what character set build env. is using". > > > > So, actually, my first released script had used [a-z], but I needed to > > move onto [[:lower:]]. > > This is correct if you are not in the C locale, but I'm not sure if we > support building the kernel in a non-C locale in the first place. > > Do you have a known failure case? There is also the option of > explicitly setting LC_CTYPE=C. Sigh. I remember first being surprised when Ubuntu "upgraded" to utf8 locale and "sort" became case insensitive. Took a while to track down why so much stuff was breaking. I've exported LC_ALL=C in all my build environments ever since. Rob -- Latency is more important than throughput. It's that simple. - Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/