This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cgywin filename with 255 character

JÃrg Schaible wrote:
Is there any pointer at MS, where this is described exaclty? I was only able to find some entries in the knowledge base that describe applications that are affected by this limit, but nowhere an explanation under what circumstances a process/application is hit by this limit.
The 255 character limit is a WinAPI limit, not an OS limit. Posix pathnames built on top of
Microsoft's Posix layer wouldn't have this limitation.

" Many Windows programs expect the maximum path length to be shorter than 255 characters. Therefore, these programs only allocate enough internal storage to handle these typical paths. *NTFS does not have this limit and it can hold much longer paths*." -

Windows has a 255 total char/path limit, but those path are directory and mount-point relative, so the full path from the root can easily exceed 255 characters.

If you need to have full posix compatibility, maybe using Microsoft's Posix subsystem will be suitable. Cygwin is built on top of the WinAPI, which still has it's roots in FAT compatibility
and is thus limited by that API.

Cygwin is unfortunately, not suitable for handling the full range of NTFS filenames (yet :-)).

-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]