delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/14/03:42:41

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <00bc01c12494$3f7163c0$0100a8c0@CX535256E>
From: "Barubary" <barubary AT home DOT com>
To: <cygwin AT cygwin DOT com>
References: <3B71FE17 DOT 8B11FEA AT usq DOT edu DOT au><997325846 DOT 19767 DOT 5 DOT camel AT robertlinux> <3B7202EF DOT 5890949F AT usq DOT edu DOT au> <997329035 DOT 19799 DOT 25 DOT camel AT robertlinux>
Subject: Re: Upper/lower case filenames.
Date: Tue, 14 Aug 2001 00:39:27 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200

The problem here is Linux, not Windows, and not Cygwin.  If you create an
8.3-compatible filename under Linux, it does not generate a long filename
entry for that file, even though it should.  As a result, the only name
Windows knows is the short name, which is all uppercase.

The solution would be to have Linux's vfat driver generate long filename
entries for files whose names are not uppercase.  Or, even better, generate
long filename entries for all files created or renamed by Linux.

When you create an 8.3-compatible filename that has lowercase letters in
Windows, it actually writes a long filename entry to preserve the case.
Linux should do the same, but doesn't.

-- Barubary

----- Original Message -----
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Ron House" <house AT usq DOT edu DOT au>
Cc: <cygwin AT cygwin DOT com>
Sent: Wednesday, August 08, 2001 22:01
Subject: Re: Upper/lower case filenames.


> On 09 Aug 2001 03:26:39 +0000, Ron House wrote:
> > Robert Collins wrote:
> > >
> > > On 09 Aug 2001 03:05:59 +0000, Ron House wrote:
> > > > Having just tried Cygwin, I notice that 8.3 filenames which are
taken to
> > > > be lower case under Linux are taken as upper case under Cygwin. This
> > > > means that scripts such as "cp *.cpp ..." and makefiles don't work
> > > > unless edited. Is there any reason for this design choice?
> > >
> > > Ron, you haven't provided _any_ detail about how you are accessing the
> > > 8.3 named files - over the network/a fat partition that you have and
> > > access via dual boot/some other thing.
> >
> > Sorry about that. I used the setup.exe thingy to install Cygwin from a
> > mirror on my local HD (Windows 98 FAT). I also have Linux locally on a
> > dual boot setup, with the C drive mounted as follows:
> >
> > /dev/hda1  /c  vfat    defaults,user,umask=033,conv=b  0 0
> >
> > Files written under Linux or Windows in lower case that fit in 8.3 are
> > all taken as upper case by the Cygwin tools.
>
> And windows shows them as upper case in file manager/windows explorer?
>
> > > In fact you haven't provided enough detail for a cygwin developer (me)
> > > to say that you are discussing a design choice, and not a
implementation
> > > choice of yours!
> >
> > I am not sure what implementation choices I have. The only question I
> > was aked was whether to use DOS or Unix text files, and I selected DOS,
> > as the crlf's are fixed by the way I send files from Linux to Windoze.
>
> Your other software is what I was referring to - which you've now
> described - thanks.
>
> I can't guess why cygwin is showing different from windows - it uses
> windows calls to get the filenames. You may need to pick an example file
> and use strace to see if any hints turn out. First off though, I'd
> double check that *windows* - not command.com/cmd.exe thinks the file
> really is lower case.
> Rob
>
> > I
> > noticed the three options on the CYGWIN environment variable for whether
> > a file is recognised as having the same name, but that doesn't solve the
> > problem because ls, etc., won't match a ".CPP" file against "*.cpp", so
> > the files are not included in the list of 'tries' to even get a shot at
> > being recognised.
>
> Yes yes - thats what you said the first time!
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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