www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/10/17:58:17

Date: Sun, 8 Dec 1996 16:10:49 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Ben Darnell <bdarnell AT vnet DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Files in lower case + UNZIP
In-Reply-To: <587aqk$hh6@ralph.vnet.net>
Message-ID: <Pine.SUN.3.91.961208160629.3423D-100000@is>
MIME-Version: 1.0

On Thu, 5 Dec 1996, Ben Darnell wrote:

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

The Zip binary I use (compiled with DJGPP v2) stores the filenames in the 
same case as given on the command line.  It never downcases anything.  
Check out the zip files for Emacs distribution on DJGPP sites: they were 
produced by Zip.

> --- 434,443 ----
>     if (dosify)
>       msname(n);
>     else
> ! #ifdef __DJGPP__
> !     if (!_USE_LFN)
> ! #endif /* __DJGPP__ */
> !       strlwr(n);

This is *wrong* IMHO: I think Zip should not downcase the name even when 
it runs on plain DOS, where _USE_LFN is zero.  That is, unless the above 
fragment gets the filenames from a function such as `findfirst' which 
reports filenames in all-upper case.

- Raw text -


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