[fpc-pascal] ExpandFileName failure on long filenames on Linux
Jonas Maebe
jonas.maebe at elis.ugent.be
Sat Aug 31 16:57:18 CEST 2013
On 31 Aug 2013, at 16:55, Bart wrote:
> On 8/31/13, Tomas Hajny <XHajT03 at hajny.biz> wrote:
>> Now, as you have already found out yourself too, it is not an issue with
>> ExpandFileName only, but also with the overloaded version of GetDir
>> returning ansistring but still limited to 255 characters. I could provide
>> a workaround for ExpandFileName (using SysUtils.GetCurrentDir and
>> basically replicating the implementation of System.GetDir under Windows
>> except for using ansistrings), but fixing the ansistring overloaded
>> version of System.GetDir sound as a more appropriate option to me.
>
> I was unable to test under Windows, but because the offending code is
> in a generic inc file, I suspect it happens on Windows as well.
>
> On Linux I saw several file related functions that seem to handle only
> shortstrings...
>
> Should I file a bugreport?
This is all already fixed in the cpstrrtl branch.
Jonas
More information about the fpc-pascal
mailing list