delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/12/11/10:03:25

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=LbWAcEahIZgzfFa876TOho+MvLV3vXUWLRDg5EpbHg2
Jk4M0rPXgSamoOadxOCUz7FeAA6wZLZB7j7mW04v6RrpFjiDWgXbY7EOUrPcVjYf
0Tn7EnVZkRgmSOghukor08K1iH5BxqmYB6zV4GLQz35hVVi4HObycaReh2QE1cQY
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
s=default; bh=hVU5RaxMKneeEsmScJRNh5PKTdE=; b=IWus0f0yZGsTXjIGo
5KB5gdafezRijcjGQy04nLfEPCvO6eubH0SCPoUAX9n31A1RvISZfjqNSLhkgX5L
hW1wLWmr3QRiKPGdAiJ0zC4hOke/LQygCYGEwhN+Xa6aU38PNip2SA14R2pIZ9TC
/85VTKBZZ0zWWh5Td2NKVY3OmM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50,DNS_FROM_AHBL_RHSBL,LIKELY_SPAM_SUBJECT,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_PSBL,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail3.ks.pochta.ru
Date: Wed, 11 Dec 2013 19:02:52 +0400
From: Mikhail Usenko <mikeus AT nm DOT ru>
To: cygwin AT cygwin DOT com
Subject: Re: cant access to files more than 128 utf-8 symbol long names
Message-Id: <20131211190252.aa55fa481635dc2570d195b9@nm.ru>
In-Reply-To: <20131211140907.GD2527@calimero.vinschen.de>
References: <52A6BFA4 DOT 9010101 AT spektr-rfs DOT ru> <20131210102755 DOT GQ2527 AT calimero DOT vinschen DOT de> <20131211174922 DOT c0c8432e69ce1423511d2cbf AT nm DOT ru> <20131211140907 DOT GD2527 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
X-RSpam-Score: 30
X-RSpam-Report: This message is unlikely spam.

I couldn't figure out how a POSIX filename passed to a Cygwin application running on the Windows system may become longer than NAME_MAX=1020 bytes if the maximum filename length in NTFS is 255 UTF-16 symbols (i.e. 1020 bytes for the biggest 4 byte UTF-8 code unit)? 
What causes the ENAMETOOLONG error? In the most of POSIX functions ENAMETOOLONG is returned if the length of a component of a pathname is longer than {NAME_MAX} or the length of a pathname exceeds {PATH_MAX}. On NTFS there is no files with pathname component longer than 1020 bytes and the length of the full pathname is limited by the Unicode API (32767 chars * 4 byte = 128KiB).
-- 


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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