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: Bob Proulx
Subject: Re: Bug in version 4.1 of ls
Date: Mon, 31 Mar 2003 23:12:42 -0700
User-agent: Mutt/1.3.28i

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]