From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 3 12:03:00 2005 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 512CE16A41F for ; Sat, 3 Sep 2005 12:03:00 +0000 (GMT) (envelope-from wigry@uninet.ee) Received: from mail.neti.ee (smtp-out-1.neti.ee [194.126.101.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9EE943D48 for ; Sat, 3 Sep 2005 12:02:59 +0000 (GMT) (envelope-from wigry@uninet.ee) Message-ID: <431990FA.3070103@uninet.ee> Date: Sat, 03 Sep 2005 15:03:06 +0300 From: Rein Kadastik User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-bugs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee Subject: localization and make buildworld X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Sep 2005 12:03:00 -0000 Hi, There is a problem with make buildworld if the LANG is set to et_EE.ISO8859-1 (and propbaly to some other locales). This setting alters the way system treats the alphabet and therefore the regular expression a-z does not cover the whole alphabet anymore. The reason is that in Estonian alphabet, the z is between s and t so the following characters are left out: t, u, v, w, x, y Therefore the following sed command will not work always: sed -e '/^\([a-z_][a-z_]*\) /s//\1 gen_/' for example "int something" is not transformed to "int gen_something" (without double quotes) but "char something" is transformed to "char gen_something" sed fails in three modules: ncurses (lib_gen.c), csh/tcsh (tc.const.h) and gdb (init.c) The solution. Force LANG=C throughout the whole make buildworld process so that regex [a-z] will cover any character. Rein