[lazarus] Filename case problem...

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Jun 8 04:10:41 EDT 2003


On Sun, 08 Jun 2003 10:20:26 +0200
Peter Vreman <peter at freepascal.org> wrote:

> At 06:41 8-6-2003, you wrote:
> 
> >I decided to give Synapse a try to see how how much of a porting
> >challenge it would be. I'm still working on it... but in the process I
> >ran into another problem that I thought might be worth mentioning.
> >
> >All the Synapse units have mixed case filenames. I was able to add
> >SynaUtil.pas with the "Add active unit to project".. but trying to
> >compile produced the error "Can't find unit SYNAUTIL". Renaming the file
> >on disk to synautil.pas got past the error... so it looks like the added
> >unit's filename was folded to lower case somewhere in the IDE.
 
The 1.0.x compiler only searches lowercase.

> You need the 1.1 compiler for mixed case filenames.

The IDE also searches same case and lowercase.
That's why the IDE has a naming scheme (Environment -> Environment Options
-> Naming). Normally lazarus saves all new units lowercase and keeps the
nice name in the source. It does not change any existing unit.
Maybe we should add an option "Auto rename lowercase". And before
compilation, the IDE checks and asks the user to rename all project units.  


Mattias






More information about the Lazarus mailing list