This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Who broke options.h?


On Tue, Apr 25, 2017 at 04:13:45PM +0000, Joseph Myers wrote:
> On Tue, 25 Apr 2017, David Malcolm wrote:
> 
> > >From what I can tell, the n_opts and opts in that file come direct from
> >  opt-read.awk, which gets them from opt-gather.awk, which appears to
> > sort them (but my awk skills are weak).
> 
> Maybe the opt-gather.awk call in Makefile.in needs to set LC_ALL=C.  If 
> setting LC_ALL=C on the $(AWK) -f $(srcdir)/opt-gather.awk call works to 
> fix this then that change is preapproved.
> 

I think you've found the problem.  If I login as the user
that owns the gcc/ directory, I see the problem.  That 
user has

troutmask:sgk[202] locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=

If I login into my normal account and then su to user sgk, the
problem does not occur.  My normal account has

troutmask:kargl[201] locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_COLLATE=C
LC_TIME="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=

So, it appears that LC_COLLATE=C is needed.  I'll see if I can
come up with a patch later today.

-- 
Steve
20161221 https://www.youtube.com/watch?v=IbCHE-hONow


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]