[fpc-pascal] ExpandFileName failure on long filenames on Linux
    Tomas Hajny 
    XHajT03 at hajny.biz
       
    Sun Sep  1 16:32:11 CEST 2013
    
    
  
On 1 Sep 13, at 14:32, Marco van de Voort wrote:
> In our previous episode, Bart said:
> > > As I wrote -
> > > the other file and directory related functions and procedures have
> > > always had only shortstring interfaces, whereas with GetDir there has
> > > also been the ansistring version).
> > 
> > I would prefer waiting for _all_ IO functions to handle LongStrings
> > (or any not_shortstring).
> 
> That was the original idea, removing the shortstring versions for not
> embedded targets, so that nobody accidentally could call shortstring
> versions.  (and only find out runtime)
> 
> But that was deemed to confusing, so now both sets are back again.
Well, this whole discussion is not about accidental calling of wrong 
version of anything but rather about getting support of the LFNs 
where needed. As pointed out by Jonas, the provided test program 
should work properly in cpstrrtl branch (even though the shortstring 
variants are still included there _in_addition_ to those providing 
full LFN support).
Tomas
    
    
More information about the fpc-pascal
mailing list