unicode and ZCTextIndex, WAS:RE: [Zope] strange unicode behaviour

Toby Dickenson tdickenson@geminidataloggers.com
Thu, 31 Jul 2003 16:33:00 +0100


On Thursday 31 July 2003 16:07, Chris Withers wrote:
> Toby Dickenson wrote:
> > On Thursday 31 July 2003 15:45, Chris Withers wrote:
> >>Dieter Maurer wrote:
> >>>  Mixing Unicode and non-Unicode keys can result in
> >>>  corrupted indexes (less likely)
> >
> > BTrees need their keys to have a total ordering.
>
> Why would they not have that if the keys are nto all of the same type?

BTrees require that they can compare their keys for order. Historically, 
breaking this requirement could corrupt things severly and silently. Today it 
isnt silent.

Demonstration is here:
http://mail.zope.org/pipermail/zodb-dev/2002-February/002301.html


-- 
Toby Dickenson - http://www.geminidataloggers.com/people/tdickenson

Want a job like mine?  http://www.geminidataloggers.com/jobs for Software
Engineering jobs at Gemini Data Loggers in Chichester, West Sussex, England