Mail Archives: djgpp/1996/12/05/16:26:12
From: | bdarnell AT vnet DOT net (Ben Darnell)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Files in lower case + UNZIP
|
Date: | Thu, 05 Dec 1996 20:20:32 GMT
|
Organization: | Vnet Internet Access, Inc.
|
Lines: | 53
|
Message-ID: | <587aqk$hh6@ralph.vnet.net>
|
References: | <582alm$i8g AT news DOT teaser DOT fr>
|
NNTP-Posting-Host: | vts-char3-s14.vnet.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
jpdelprat AT teaser DOT fr (Jean-Pierre Delprat) was overheard mumbling
incoherently about Files in lower case + UNZIP:
>Hello, everyone
>I would like to know if there is an utility in DJGPP to convert all
>filenames in a directory into lower case ones.
If you use 4dos, just put this command in a batch file:
for %%x in (%1&) do ren %x %@lower[%x]
It shouldn't be too hard to write such a program in djgpp, but I'm not
aware of one.
>Another question : the ZIP utility know how to deal with long
>filenames under Windows 95 but the UNZIP doesn't. Is there something
>special to do ? (I use version 5.20, 30 April 96)
Did you build zip/unzip yourself, or download a precompiled binary?
If it was precompiled, it may not have been compiled with DJGPP 2.01.
For me, it worked with long filenames, but it converted all filenames
to lowercase. The problem is in zip, not unzip. It shows the correct
long filenames on the screen, but the lowercased names are stored in
the .zip. Here's a diff for msdos/msdos.c (version 2.1):
*** msdos.old Tue Apr 23 15:59:02 1996
--- msdos.c Tue Nov 26 19:50:18 1996
***************
*** 434,440 ****
if (dosify)
msname(n);
else
! strlwr(n);
if (pdosflag)
*pdosflag = dosflag;
return n;
--- 434,443 ----
if (dosify)
msname(n);
else
! #ifdef __DJGPP__
! if (!_USE_LFN)
! #endif /* __DJGPP__ */
! strlwr(n);
if (pdosflag)
*pdosflag = dosflag;
return n;
__ __
/> /_ /| / /\ /| /> /| / /_ / /
/> /_ / |/ /_/ /-| / \ / |/ /_ /_ /_
http://users.vnet.net/bdarnell
bdarnell AT vnet DOT net
- Raw text -