delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/25/14:41:58

X-Spam-Check-By: sourceware.org
Message-ID: <44C665CA.8010707@tlinx.org>
Date: Tue, 25 Jul 2006 11:41:14 -0700
From: Linda Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cgywin filename with 255 character
References: <F0D7281DAB048B438E8F5EC4ECEFBDDCCB982B AT esmail DOT elsag DOT de>
In-Reply-To: <F0D7281DAB048B438E8F5EC4ECEFBDDCCB982B@esmail.elsag.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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*." - 
http://support.microsoft.com/Default.aspx?kbid=320081

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:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019