X-Spam-Check-By: sourceware.org
Date: Sun, 4 Dec 2005 20:43:51 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: open() giving ENOENT when trying to create files with control chars
Message-ID: <20051204194350.GG2999@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <120220052038.3878.4390B0AC000B476600000F2622007601800A050E040D0C079D0A@comcast.net> <20051202220905.GA2999@calimero.vinschen.de> <20051204172940.GB3276@efn.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20051204172940.GB3276@efn.org>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Dec  4 09:29, Yitzchak Scott-Thoennes wrote:
> On Fri, Dec 02, 2005 at 11:09:05PM +0100, Corinna Vinschen wrote:
> > On Dec  2 20:38, Eric Blake wrote:
> > > > I'm trying to create a file (on NTFS) with a CR in the name and getting
> > > > ENOENT; is it possible for this to work (without a managed mount)?
> > > 
> > > Welcome to Windows.  None of these non-portable characters are
> > > supported in filenames except in managed mounts.
> > 
> > Just to push the point a bit, note the words "non-portable".
> 
> I did do a bit of looking around before posting, and saw the *?/\<>|:"
> characters mentioned in several places, but not the 0-0x1f characters.
> Now, I've looked more and see those officially verboten as well.
> (Though I also saw a page that documents how 8.3 filenames are formed
> and seems to say that the *?/\<>|:" characters *are* possible in NTFS
> filenames.)
> 
> http://support.microsoft.com/default.aspx?scid=kb;en-us;117258
> is interesting...

This is certainly interesting.  Using this in Cygwin would require to
change the path handling to using UNICODE, though, which is a major
undertaking since the path handling throughout Cygwin is plain ASCII
right now.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

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

