From owner-svn-src-all@FreeBSD.ORG Thu Jan 21 11:57:23 2010 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 513F6106566B; Thu, 21 Jan 2010 11:57:23 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id 9FC368FC1B; Thu, 21 Jan 2010 11:57:22 +0000 (UTC) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.3/8.14.3) with ESMTP id o0LBvJw5061408; Thu, 21 Jan 2010 14:57:19 +0300 (MSK) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1264075040; bh=waffBYRmaanPl0IoSAgvVqtSUCo366sLS5hHZvKupM0=; l=1192; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=TNGEkaNECB9Chm8c8v9m4qXh9RjtDg1zhPIV7LBEFf78KeNJeDGxKCqQOu9s1c/nv nAztyInSZRaE7/q/ERBpwZV/MGQPsGTa5K8Nky4krJwrWIrVSCWmuK13ztQD1vdr7P vf8BrteleOgTO49jb1kQai5UM0W0pG1TGowwFeRE= Received: (from ache@localhost) by nagual.pp.ru (8.14.3/8.14.3/Submit) id o0LBvJ4N061407; Thu, 21 Jan 2010 14:57:19 +0300 (MSK) (envelope-from ache) Date: Thu, 21 Jan 2010 14:57:19 +0300 From: Andrey Chernov To: Bruce Evans Message-ID: <20100121115719.GA61292@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Bruce Evans , src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, svn-src-head@FreeBSD.org References: <201001181344.o0IDiiEL079037@svn.freebsd.org> <20100120012639.B67517@delplex.bde.org> <20100120070843.GA45937@nagual.pp.ru> <20100120191752.Q2120@besplex.bde.org> <20100120094627.GA53020@nagual.pp.ru> <20100120211722.S2451@besplex.bde.org> <20100120121827.GA55236@nagual.pp.ru> <20100121155841.H1512@besplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100121155841.H1512@besplex.bde.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r202572 - head/lib/libc/gen X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2010 11:57:23 -0000 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? http://unicode.org/reports/tr10/ > 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 possible. -- http://ache.pp.ru/