[Lazarus] "Sort files alphabitically" is case-sensitive :-(
Sven Barth
pascaldragon at googlemail.com
Mon Nov 14 21:32:02 CET 2011
On 14.11.2011 20:27, Hans-Peter Diettrich wrote:
> Mattias Gaertner schrieb:
>> On Mon, 14 Nov 2011 15:56:00 +0200
>> Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I updated my Lazarus to the latest Trunk revision. I see there is now
>>> a "sort files alphabetically" option in the Project Inspector.
>>>
>>> Unfortunately the sorting seems to be case-sensitive. So units with
>>> capital letters appear before units with lowercase letters. Was this
>>> done by design, or simply an oversight?
>>
>> Design. It sorts file names, so case sensitive under Linux and case
>> insensitive under Windows and OS X.
>
> IMO a project contains *units* in the first place, and unit names are
> case insensitive. It's not allowed to add a unit twice, with only
> different filename case.
>
> Consequently project file sorting should be case insensitive, unique
> across platforms.
But the project inspector does contain the *file* names and not the
*unit* names. And these *can* be different (not only in casing), though
I personally don't know anyone who uses the "-Un" option which is
necessary for this...
Regards,
Sven
More information about the Lazarus
mailing list