On 1/19/16, Jürgen Hestermann <[email protected]> wrote: > > If I understood you correctly you would want to have > > function FileXXXUtf8(Fn) do: > > begin > > if (Length(Fn) > MaxPath) and (not StartsWith('\\?\',Fn) then > > FileXXXUtf8('\\?\' + Fn) > > else > > OriginalImplementationOfFileXXXUtf8() > > end; > > (With the exception of ExpandFilenameUtf8) > > Yes, more or less. > Slashes should be converted to backslashes too. > > Also, expanding (relative or incomplete) paths can be done > by Lazarus internally so that this would even work with long paths.
Again you fail to see the problem. There is no way of telling wether e.g. C:\longpath\..\..\..\..\longpath/foo/bar is meant as a extended long path or not. Only the programmer of that particular program may know. If we guess wrong, the program will do something it is not supposed to do. But now I'm only repeating arguments, so I'll stop contributing to this thread. Bart -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
