[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