[fpc-pascal] Case insensitive FindFirst and friends
dmitry boyarintsev
skalogryz.lists at gmail.com
Mon May 18 15:19:17 CEST 2009
> I think the only real solution is accept that different OSes do not behave
> exactly the same, as this will by no means be the only difference they'll
> encounter.
Actually, FindFirst is not OS dependant, but disk partition dependant.
I.e. searching on FAT disk in Unix should also be case insensitive,
because FAT is case-insensitive.
Searching on Ext2(3) or any other disk case-sensitive partition
mounted in Windows should also be case-sensitive...
So the ideal solution is to create custom routines: MyFindFirst(
masks, attribs, dir, ForceInsensitive: Boolean);
1) detect if dir searched is case-sensitive
2) do search for all files (*), and check file name match manually.
thanks,
dmitry
More information about the fpc-pascal
mailing list