[fpc-pascal] Function for checking correct file name

Howard Page-Clark hdpc at talktalk.net
Fri Sep 14 16:02:49 CEST 2012


On 14/9/12 2:43, Mattias Gaertner wrote:

>  > > c: set of Char = ['<','>',':','"','/','\','|','?','*', '%', '.'];

>  > But several of those are fine in filenames- just inadvisable since they
>  > need special quoting/escaping to get past the shell. As does ' ' which
>  > isn't in your list :-)
>
> And it does not check for #0..#31, #127.

As is so often the case, a truly cross-platform solution requires a good 
deal more care and research (and cross-platform experience) than simply 
extending a Windows-only solution.

Howard




More information about the fpc-pascal mailing list