delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/07/02:54:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <000c01c38c9f$c6497f20$6fc82486@medschool.dundee.ac.uk>
Reply-To: <fergus AT bonhard DOT uklinux DOT net>
From: <fergus AT bonhard DOT uklinux DOT net>
To: <cygwin AT cygwin DOT com>
Cc: <fergus AT bonhard DOT uklinux DOT net>
Subject: Moving devices from 98SE to XP and back again
Date: Tue, 7 Oct 2003 07:28:57 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

This is a file-handling problem that I have noticed in other contexts too.

Windows 98/SE is good (faultless?) at preserving upper case and lower case
in filenames, whether long or short or with spaces. However, I have noticed
when moving devices back and forth between 98 and XP machines, that XP is
nothing like as careful, and that in circumstances that I have not yet
precisely identified, one can suddenly lose this distinction when all 8.3
filenames that had been all lower case become all upper case.

Mixtures of case in filenames are preserved (libW11.dll stays libW11.dll,
XWin.exe stays XWin.exe) and so are long file names (cygcrypto.dll stays
cygcrypto.dll) but in all other cases (less.exe, cygwin1.dll) the change
takes place (LESS.EXE, CYGWIN1.DLL).

In an important respect this does not matter at all: Windows is daft enough
not to know there is a difference and so it does not notice it when seeking
and reading a file. Eg when starting Cygwin it does not matter that
cygwin1.dll has become CYGWIN1.DLL. But: Cygwin does notice, and once there,
ls cyg* presents a quite different response to ls CYG* (for instance). So
this is a very nasty occurrence, once it has happened.

I appreciate that the list is well populated with traffic on the subject of
long and short filenames but I have not found the answers to the following:
(1) when moving devices between different OS as described, is there a
particular class of activity that will cause this transformation? (Maybe
something to do with pursuing activities in a XP Command Prompt window, but
I can't confirm this.) (2) assuming the activity is a useful one to be
continued, is there some protection that can be implemented against the
transformation taking place?

Thank you.

Fergus


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