From owner-freebsd-current@FreeBSD.ORG Sun Nov 18 11:22:45 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EE0A16A468 for ; Sun, 18 Nov 2007 11:22:45 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id E2BA913C459 for ; Sun, 18 Nov 2007 11:22:44 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.2/8.14.2) with ESMTP id lAIBMRoF021397; Sun, 18 Nov 2007 14:22:27 +0300 (MSK) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1195384947; bh=2E3pGZkxXhAtsBsDXfH7WAbmrImn+4v+aNb0FAi ty0s=; l=1387; h=Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:User-Agent; b=H+6fOTe1TOVFhCM5BUAG Lw9ymsFWdhhtl4JxjvS9k52Op3B0EJigfah4/JMwKXM3TMTe/6UKueP6c17jzTZsC+R ZGTNE74XQDlB1+S7ZRvcDZzSeT//d9zStcfKs3DTOtqDe6a27sncpFIRmNdvxacY9CE en4BKJYsBzZi8C6HY= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id lAIBMRPW021396; Sun, 18 Nov 2007 14:22:27 +0300 (MSK) (envelope-from ache) Date: Sun, 18 Nov 2007 14:22:26 +0300 From: Andrey Chernov To: Martin Nilsson Message-ID: <20071118112226.GA20540@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Martin Nilsson , freebsd-current@FreeBSD.ORG References: <473FE18B.2090303@gneto.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <473FE18B.2090303@gneto.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-current@FreeBSD.ORG Subject: Re: Setting LANG=sv_SE.ISO_8859-1 breaks 7.0 buildworld X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Nov 2007 11:22:45 -0000 On Sun, Nov 18, 2007 at 07:54:03AM +0100, Martin Nilsson wrote: > Can we have this fixed before 7.0-R or at least unset LANG in the Makefile? > > > If I add the following line to the default profile in /etc/login.conf > :lang=sv_SE.ISO_8859-1:\ > > I think this file is created with src/contrib/gcc/opth-gen.awk > > tail /usr/obj/home/FreeBSD/RELENG_7/src/gnu/usr.bin/cc/cc_tools/options.h > OPT_trigraphs, /* -trigraphs */ > OPT_undef, /* -undef */ > OPT_w, /* -w */ > OPT_v, /* -v */ > OPT_w, /* -w */ > OPT_version, /* -version */ > N_OPTS > }; > > #endif /* OPTIONS_H */ > > > OPT_w is present twice! The awk script is supposed to remove duplicates and > sort the result but it does not seem to work with our i18n support. 1) it should be sv_SE.ISO8859-1, not sv_SE.ISO_8859-1 2) yes, wrong "optionlist" is generated by opt-gather.awk 3) Probably awk bug. If I substitute gawk here instead, all passes right. 4) Test script reduced to minimum BEGIN { a="ve" b="w" if (a > b) print "1"; else print "0" exit } (note that if a="v" it works right) I'll look into it deeper later. -- http://ache.pp.ru/