[Lazarus] FileExistsUTF8 and long paths
Bart
bartjunk64 at gmail.com
Sat Jan 16 00:11:09 CET 2016
On 1/15/16, Jürgen Hestermann <juergen.hestermann at gmx.de> wrote:
> Why not prepend "\\?\" at this last Windows step so it works for long paths
This will break existing programs, including the ide.
Currently you can use both / and \ in filenames on Wndows filename
functions, because the API does not care.
That is unlues you prepend \\?\, then character in the given string
MUST be in the filename.
Also this will then return false on '..\foo.bar', sincenow te APi
expects that the two dots are part of the filename.
See the comments in ExpandFilenameUTF8 (I think I put a reference there).
Bart
More information about the Lazarus
mailing list