On Sun, 19 Nov 2023, Sven Barth via fpc-pascal wrote:

Bart via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb am Sa., 18.
Nov. 2023, 18:24:

1. The docs state that an exception is raised if the given paths
contain invalid characters. Does the vlaue of the ValidateParams have
any influence on this?


Also: does this depend on the operating system and/or file system? Cause
Linux file systems have different invalid characters (usually only slash
and NUL) than NTFS or FAT.

Attached program tests for invalid characters. if ValidateParams is
False, no tests are done on input.

The output is in linux.txt and windows.txt

From what I can see all characters with ascii code < 32 are invalid.
For windows additionally, the > " < and | characters are invalid.

This is for paths only. I didn't test filename characters.

Michael.

<<attachment: tpath-test.zip>>

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to