Date: Mon, 18 Jan 2010 10:17:51 +0000 (UTC) From: "Andrey A. Chernov" <ache@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen opendir.c scandir.c Message-ID: <201001181018.o0IAI4bm035927@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ache 2010-01-18 10:17:51 UTC
FreeBSD src repository
Modified files:
lib/libc/gen opendir.c scandir.c
Log:
SVN rev 202556 on 2010-01-18 10:17:51Z by ache
a) Use strcoll() in opendir() and alphasort() as POSIX 2008 requires.
It also matches now how our 'ls' works for years.
b) Remove comment expressed 2 fears:
1) One just simple describe how strcoll() works in _any_ context,
not for directories only. Are we plan to remove strcoll() from everything
just because it is little more complex than strcmp()? I doubt, and
directories give nothing different here. Moreover, strcoll() used
in 'ls' for years and nobody complaints yet.
2) Plain wrong statement about undefined strcoll() behaviour. strcoll()
always gives predictable results, falling back to strcmp() on any
trouble, see strcoll(3).
No objections from -current list discussion.
Revision Changes Path
1.28 +2 -2 src/lib/libc/gen/opendir.c
1.12 +2 -6 src/lib/libc/gen/scandir.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001181018.o0IAI4bm035927>
