[fpc-pascal] ExpandFileName failure on long filenames on Linux

Bart bartjunk64 at gmail.com
Sat Aug 31 14:31:58 CEST 2013


Hi,

Before reporting this as a bug, can somebody confirm?

program efn;

uses sysutils;

begin
  writeln(expandfilename(paramstr(1)));
end.

If I cd to a directory with a very long name (>255 chars) and then
exeucte the following:
$ ~/LazarusProjecten/bugs/findfirst/efn .

It prints out only the first 255 characters of the current directory.
(This issue poped up whilst investigating
http://bugs.freepascal.org/view.php?id=24885)

Bart



More information about the fpc-pascal mailing list