bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in version 4.1 of ls


From: Gary . Hanson
Subject: Re: Bug in version 4.1 of ls
Date: Tue, 1 Apr 2003 11:09:09 -0800

Thanks Bob,

I tried "export LC_ALL=POSIX" and that relieved the problem I had with the
version 4.1 software.

Regards,
Gary




                                                                                
                                                       
                      address@hidden                                            
                                                       
                      (Bob Proulx)             To:       address@hidden         
                                              
                                               cc:       address@hidden         
                                                
                       03/31/2003 10:12        Subject:  Re: Bug in version 4.1 
of ls                                                  
                      PM                                                        
                                                       
                                                                                
                                                       
                                                                                
                                                       




address@hidden wrote:
>
> I noticed a bug introduced between version 4.0.37 and 4.1 of ls.

Thanks for submitting the report.  However, more information is
needed.

> Per ASCII character sequencing, in which a hyphen (0x2D) precedes a
period
> (0x2E), one would expect ls to present the files dhclient-script and
> dhclient.conf in that order.  And that is what version 4.0.37 of ls does.
> However, version 4.1 reverses them, showing dhclient.conf before
> dhclient-script.

That ordering is only used if the the locale (selected by LANG or
other) is set to C or POSIX or unset to default to those.  I find that
many people today are setting their locale to use a non-traditional
dictionary sort ordering.  What is your locale?

  locale

Try setting LANG to C or POSIX and repeating the experiment.  Does
that solve the problem?

  export LC_ALL=POSIX

Perhaps your version of 4.0.37 was compiled without support for
locales and your version 4.1 was compiled to support it.  Therefore
one is respecting the locale setting and the other is not?

In any case the character collating sequences are controlled by
strcoll(3) from libc and are dependent upon the behavior there.  Is
the version of libc the same or different in your two test cases?

Bob








reply via email to

[Prev in Thread] Current Thread [Next in Thread]