Re: Some patches for zip and unzip under Cygwin and Unix
"Christian Spieler" <Christian.Spieler-S0/[email protected]> Tue, 2 Dec 2003 04:11:29 +0100
| Newsgroups | gmane.comp.archivers.info-zip |
|---|---|
| Message-ID | <00b801c3b882$109279c0$0180a8c0@spcpc1> |
----- Original Message ----- From: "Greg Roelofs" <[email protected]> To: <[email protected]> Cc: <[email protected]>; <[email protected]> Sent: Saturday, November 29, 2003 8:12 AM Subject: Re: [Info-ZIP] Some patches for zip and unzip under Cygwin and Unix > Cosmin wrote: > > > Here are the modifications to unzip551c: > > > U1). > > ChangeLog entry: > > - Adapt the Unix port to work under Cygwin. > > As part of this, I'd like to suggest that we officially change Cygwin > "-a" handling to be DOS-like (i.e., make CR/LF files) rather than Unix- > like. The host filesystem and virtually all of the tools are DOS-EOL- > aware, if not actually 100% DOS/Windows to their core, so it doesn't > make much sense to emit Unix-style text files. (An alternative would > be to allow selection of the line-ending style, but I don't know that > that's necessary.) I do not want to bloat the unix port with such an exception handler just for the Cygwin case. For general usage on Win32 (or using Unzip in an environment where cygwin tools are mixed with "native" win32 programs), the "Cygwin-UNIX" is not recommended. Instead, people should use the supported cygwin port from win32/makefile.gcc, or even better, use the mingw compiler variant with win32/makefile.gcc. In those cases where people WANT to use the unix/Makefile cygwin port because of their needs to handle unix-fs symlinks, they are most probably working in a pure cygwin environment (using only cygwin tools or straight-forward ports of unix programs...). Then, their programs probably default to unix style LF line endings. In that case it might be unwanted to get MSDOS CR-LF style handling of text files. Best regards, Christian Spieler