Hello,

I would like to submit the attached patch. I noticed that some of my
source files could not be found by the IDE. The reason is that in 
TCTDirectoryCache.FindUnitSource, the binary search uses a different
comparison function from the one that FListing was originally sorted
with.

Sorting a list with one comparison function, then doing a binary
search with a different one, can cause the binary search to fail.

On Mac OS X, the binary search failed when filenames with underscores
were used. Some comparison functions sort the underscore _ before the
letters, while other comparison functions sort the underscore after the
letters.

Cheers,
Tobias

Attachment: DirCache-TG-2007-09-28.patch
Description: Binary data

Reply via email to