Thanks Bob,

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

Regards,
Gary




                                                                                       
                                                
                      [EMAIL PROTECTED]                                                
                                                   
                      (Bob Proulx)             To:       [EMAIL PROTECTED]             
                                          
                                               cc:       [EMAIL PROTECTED]             
                                            
                       03/31/2003 10:12        Subject:  Re: Bug in version 4.1 of ls  
                                                
                      PM                                                               
                                                
                                                                                       
                                                
                                                                                       
                                                




[EMAIL PROTECTED] 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






_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to