[fpc-devel]Issues with GDB on Mac OS X with mixed case file

Peter Vreman peter at freepascal.org
Sun Aug 29 15:16:40 CEST 2004


At 14:00 29-8-2004, you wrote:
>On Sat, 28 Aug 2004 22:26:08 +0200 (CEST)
>Peter Vreman <peter at freepascal.org> wrote:
>
> > > However, I found the problem and a possible solution. In globals.pas
> > > there are three FindFile routines, namely: TSearchPathList.FindFile,
> > > FindFile, and FindFilePchar.
> > >
> > > All routines contain roughly the same code snippet:
> >
> > Fixed
>Does this mean the folowing is not true anymore?
>// FPC searches first lowercase, then keeping case, then uppercase
>FYI: This is a comment for the lazarus/main.pp.

Below is the mail i wrote for updating the fpc docs:


I've updated the search order of files. It is now:

For case sensitive systems (and windows):

NormalCase
lowercase
UPPERCASE


For non-case sensitive systems

lowercase


What does this mean. When you have a 'uses Hello' the compiler will first
look for a Hello.pp/.pas file. When the file HEllo.pas exists it will not
be found. So for the mixed case the uses line will be case-sensitive. This
is Kylix compatible.

Peter





More information about the fpc-devel mailing list