Date: Sun, 18 Nov 2007 14:22:26 +0300 From: Andrey Chernov <ache@nagual.pp.ru> To: Martin Nilsson <martin@gneto.com> Cc: freebsd-current@FreeBSD.ORG Subject: Re: Setting LANG=sv_SE.ISO_8859-1 breaks 7.0 buildworld Message-ID: <20071118112226.GA20540@nagual.pp.ru> In-Reply-To: <473FE18B.2090303@gneto.com> References: <473FE18B.2090303@gneto.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071118112226.GA20540>
