Mail Archives: djgpp/1996/07/23/16:31:33
Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
: On Mon, 22 Jul 1996, Douglas Gleichman wrote:
: > I just noticed that the djgpp faq djgppfaq.txt in faq201b.zip
: > is a Unix text file. Some DOS editors can handle unix files
: > and some can't.
: This is done on purpose. The tools that generate the FAQ create DOS text
: files, but I convert them to Unix format when I package them into the ZIP
: file. The reason is that DOS development tools can usually handle
: Unix-style text files much better than Unix tools handle DOS-style
: files. Since many people use DJGPP on Linux boxes (or other Unix-hosted
: cross-development platforms), I don't want them to curse my guts. Please
: note that all the DJGPP text files are distributed in this way, so the
: FAQ is no exception. For instance, look at the header files in the
: include/ directory. If your editor cannot grok Unix text files, you
: won't be able to look at the headers or at the DJGPP library sources as
: well.
: DJGPP comes with a program called UTOD.EXE (check your bin/ subdirectory)
: that will convert the files to DOS format. It will accept wildcards as
: its command-line arguments, and will even preserve the time-stamps of the
: files. So if you don't want to switch to another editor (which you
: should IMHO), it is very simple to do the conversion. Unix conversion
: programs are much more cumbersome btw, they can only convert a single
: file at a time.
Actually, if you use the free unzip program (which is available in the
djgpp directory), you have an option -a, which automatically converts
between unix and DOS EOL conventions. The nice thing about this is
that it distinguishes between text and binary files, so you usually
don't break anything.
bye, Alexander
--
Alexander Lehmann, | "On the Internet,
alex AT hal DOT rhein-main DOT de (plain, MIME, NeXT) | nobody knows
lehmann AT mathematik DOT th-darmstadt DOT de (plain) | you're a dog."
!!CHANGED!! <URL:http://www.mathematik.th-darmstadt.de/~lehmann/>
- Raw text -