www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/23/16:31:33

Xref: news2.mv.net comp.os.msdos.djgpp:6326
From: lehmann AT mathematik DOT th-darmstadt DOT de (Alexander Lehmann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgppfaq.txt is a _Unix_ text file
Date: 23 Jul 1996 14:51:42 GMT
Organization: Technische Hochschule Darmstadt
Lines: 42
Message-ID: <4t2otu$154m@rs18.hrz.th-darmstadt.de>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960723080128 DOT 9913A-100000 AT is>
NNTP-Posting-Host: fb0432.mathematik.th-darmstadt.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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