svn commit: r201604 - head/lib/libc/gen
ache at nagual.pp.ru
Fri Jan 8 06:11:26 UTC 2010
On Fri, Jan 08, 2010 at 03:29:07AM +1100, Bruce Evans wrote:
> Nothing has turned here yet. We just didn't want to risk changing
> alphasort() yet.
I mean the comment itself.
> POSIX adds an EINVAL error and a requirement that errno no be modified
> if there is no error, so that errors from strcoll() can be detected
> (still messily -- you have to set errno to != EINVAL before the call).
> Maybe falling back to strcmp() is good enough for the errnor handling.
Currently strcoll() never use EILSEQ and always falback to ASCII when
ordering is equal. In the future, when EILSEQ will be used, it can
fallback to ASCII too, producing stable ordering.
More information about the svn-src-head