Windows long path experimenting report

Patrick Mézard pmezard at
Fri Jun 20 03:18:51 CDT 2008

Adrian Buehlmann a écrit :
> It seems we *can* create long path files on Windows XP using
> \\?\.. and the ...W functions of win32file.

Interesting test. 

I think you should forget the reserved name issue for now, at worse we can solve it by tweaking the encoding strategy. What I understand about your attempts is long file names created with CreateFileW() are still unremovable when using Windows Explorer or command line tools ? That's a real problem, I can understand Windows API and wrappers have issues with reserved filenames but I would have hoped they provided some fallback for long file names. I mean, it seems to make this feature completely useless.

Patrick Mézard

More information about the Mercurial-devel mailing list