On Fri, 28 Sep 2007 02:44:00 +0200
Tobias Giesen <[EMAIL PROTECTED]> wrote:
> 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.
The problem was probably something that the algorithm only searched in
one direction, not the wrong search function. Can you test, if it is
fixed?
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives