Date: Sun, 8 Dec 1996 16:10:49 +0200 (IST) From: Eli Zaretskii To: Ben Darnell cc: djgpp AT delorie DOT com Subject: Re: Files in lower case + UNZIP In-Reply-To: <587aqk$hh6@ralph.vnet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.