Re: Setting LANG=sv_SE.ISO_8859-1 breaks 7.0 buildworld

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Sun, 18 Nov 2007 14:22:26 +0300
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/
Received on Sun Nov 18 2007 - 10:22:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:22 UTC