On Thu, 2006-09-28 at 18:53 -0400, simo wrote:
> On Thu, 2006-09-28 at 17:06 +0000, [EMAIL PROTECTED] wrote:
> > Author: abartlet
> > Date: 2006-09-28 17:06:38 +0000 (Thu, 28 Sep 2006)
> > New Revision: 18978
> > 
> > WebSVN: 
> > http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18978
> > 
> > Log:
> > Fix bug found by:
> > http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/
> > 
> > The issue here is that if the UTF8 conversion fails, because this
> > isn't actually UTF8 data, then we need to do a binary compare instead.
> 
> I think we should just fail. Why should we compare wrong data anyway?
> Can you give me a valid case where we want to allow invalid utf8
> strings?

Imagine a qsort() function, based on this comparison:  What would happen
if two strings always returned '-1' against each other, even if
reversed?

I'm not sure there is a valid way to fail this, and given this is the
default comparison function, a binary compare seems reasonable to me...

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to