Setting LANG=sv_SE.ISO_8859-1 breaks 7.0 buildworld

Andrey Chernov ache at nagual.pp.ru
Sun Nov 18 03:22:45 PST 2007


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/


More information about the freebsd-current mailing list