[Lazarus] FileExistsUTF8 and long paths

Jürgen Hestermann juergen.hestermann at gmx.de
Sun Jan 17 17:21:42 CET 2016


Am 2016-01-17 um 15:25 schrieb Bart:
 > Quoted from the link:
 > "To specify an extended-length path, use the "\\?\" prefix. For
 > example, "\\?\D:\very long path"."
 > Maybe you need new eyes, not new glasses ;-)

I know the Windows API specification very well.

But you seem to forget the original thread.
I asked:

 > Why not prepend "\\?\" at this last Windows step so it works for long paths

to which you answered:

 > 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).

How does the comment bring any new facts to the discussion?
It just repeats the text you wrote before.
I expected more information in the comment which I did not find.





More information about the Lazarus mailing list