> 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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to