Re: Cgywin filename with 255 character

2006-07-25 Thread Linda Walsh


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/



Re: Cgywin filename with 255 character

2006-07-11 Thread Larry Hall (Cygwin)

Xiaomin Wu wrote:

Hello,

I have problem to touch a file with 255 charaters long filename in Cygwin 
client (MKS client works fine). After remove 2 of them, it seems work fine. 
Could you explain why? Thanks a lot!


sh-3.1$ pwd
/cygdrive/c

sh-3.1$ touch c:/file123456789-123456789-123456789-123456789-123456789-12345678
9-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1234567
89-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456
789-123456789-123456789-1234567.txt   == 255 charaters not include c:/
touch: cannot touch `c:/file123456789-123456789-123456789-123456789-123456789-12
3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
3456789-123456789-123456789-1234567.txt': File name too long

sh-3.1$ touch c:/file123456789-123456789-123456789-123456789-123456789-12345678
9-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1234567
89-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456
789-123456789-123456789-123456.txt == 254 charaters not include c:/
touch: cannot touch `c:/file123456789-123456789-123456789-123456789-123456789-12
3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
3456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
3456789-123456789-123456789-123456.txt': File name too long


sh-3.1$ touch c:/file123456789-123456789-123456789-123456789-123456789-12345678
9-123456789-123456789-123456789-123456789-123456789-123456789-123456789-1234567
89-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456
789-123456789-123456789-12345.txt==253 charaters not include c:/



Windows places a limit on the number of ASCII characters in a file/path name. 
 It's approximately 260 characters.  Cygwin path conversion may cut that down

a bit.


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

--
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/



Re: Cgywin filename with 255 character

2006-07-11 Thread Lev Bishop

On 7/11/06, Larry Hall (Cygwin) wrote:



Windows places a limit on the number of ASCII characters in a file/path name.
 It's approximately 260 characters.  Cygwin path conversion may cut that down
a bit.


More precisely, both the windows version of the path, and the posix
version of the path, must each be less than 260 characters, including
the 3 chars of 'C:\' for the windows version and the full  path from
root for the cygwin version. If you want to access long filenames via
a cygwin path, make sure you mount the directory such that the cygwin
mountpoint is at least as short as the windows path of the mountpoint.

Lev

--
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/



RE: Cgywin filename with 255 character

2006-07-11 Thread Jörg Schaible
Hi Larry,

Larry Hall (Cygwin) wrote on Tuesday, July 11, 2006 4:50 PM:
[snip]
 Windows places a limit on the number of ASCII characters in a
   file/path name. It's approximately 260 characters.  Cygwin path
 conversion 
 may cut that down
 a bit.

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.

Thanks,
Jörg

--
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/



Re: Cgywin filename with 255 character

2006-07-11 Thread Lev Bishop

On 7/11/06, 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.


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp

--
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/



Re: Cgywin filename with 255 character

2006-07-11 Thread George
On Tue, Jul 11, 2006 at 06:01:40PM +0200, Jorg Schaible wrote:
 Hi Larry,
 
 Larry Hall (Cygwin) wrote on Tuesday, July 11, 2006 4:50 PM:
 [snip]
  Windows places a limit on the number of ASCII characters in a
  file/path name. It's approximately 260 characters.  Cygwin path
  conversion may cut that down a bit.
 
 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.

You could also try yesterday's article at
http://it.slashdot.org/article.pl?sid=06/07/10/1238246 for some vaguely 
wrong but occasionally inspired opinions on the subject, at least 
written in a language less terse than that typically found in most 
Microsoft documentation.

YMMV.

-- 
George
+1 Informative


--
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/