SPECS: grub2.spec - builds for me too when switching to gawk

Przemyslaw Iskra sparky at pld-linux.org
Wed Dec 6 20:44:15 CET 2006


On Wed, Dec 06, 2006 at 09:19:45PM +0200, Elan Ruusamäe wrote:
> On Tuesday 05 December 2006 21:05, Przemyslaw Iskra wrote:
> > > it's "default" already:
> > >
> > > $ rpm -E %build
> > > %build
> > > LANG=C
> > > export LANG
> > > unset DISPLAY ||:
> > > unset LINGUAS ||:
> >
> > not good enough
> >
> > [sparky at pepec ~]$ LC_ALL= LC_NUMERIC=ca_ES LANG=C LINGUAS= gawk 'BEGIN { A
> > = 3; A = A / 2; printf A "\n"; }' 1,5
> > [sparky at pepec ~]$ LC_ALL= LC_NUMERIC=POSIX LANG=C LINGUAS= gawk 'BEGIN { A
> > = 3; A = A / 2; printf A "\n"; }' 1.5
> >
> > I think we should set LC_ALL=C, because if someone sets LC_ALL to
> > anything it will mess up a lot.
> 
> just LC_ALL=C, or LANG=C, LINGUAS=C reset needed too?
> 
> $ LC_ALL=C locale
> LANG=en_US.UTF-8
> LC_CTYPE="C"

If you are talking about extending %build overload I would propose at
least using those:

export LC_ALL=C
export LANG=C
unset LINGUAS ||:
unset LANGUAGE ||:
unset LC_MESSAGES ||:

There may be apps not using message language values through glibc but
directly, in some broken way (I know because I've written one of such
apps :P).
Any thing using LC_NUMERIC and similar will probably be
written correctly enough to use LC_ALL value.

and unset DISPLAY ||: naturally

-- 
 ____  Sparky{PI] -- Przemyslaw _  ___  _  _  ........... LANG...Pl..Ca..Es..En
/____) ___  ___  _ _ || Iskra  |  | _ \| |  | : WWW........ppcrcd.pld-linux.org
\____\| -_)'___| ||^'||//\\// <   |  _/| |  | : JID......sparky<at>jabberes.org
(____/||   (_-_|_||  ||\\ ||   |_ |_|  |_| _| : Mail....sparky<at>pld-linux.org


More information about the pld-devel-en mailing list