svn commit: r202572 - head/lib/libc/gen
ache at nagual.pp.ru
Thu Jan 21 11:57:23 UTC 2010
On Thu, Jan 21, 2010 at 04:25:53PM +1100, Bruce Evans wrote:
> > To be used in practice, strcoll() should never fails, doing fallback to
> > strcmp() instead, not only in that, but in lots of other cases too (it may
> > set errno like EILSEQ, but not fails). The next important thing is to
> > return 0 only for true binary equals, additionaly ranking (f.e. by
> > strcmp()) anything inside classes of equality to stabilize result.
> > I hope our strcoll() will be kept in that state after implementing
> > UCA too.
> What is UCA?
> Can it return equal for non-binary-equal strings? I think it can -- the
> locale might have different encodings for strings that are considered
> identical. Then duplicates should be according to strcoll() and file
> systems would have a hard time managing such duplicates when they are
> created in a locale where they are non-duplicates.
It can, but it isn't convenient. It depends of how equality classes are
treated. If strings belongs to such class, they have the same weight
comparing with other strings, but additional ranking inside class is
More information about the svn-src-all