www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/21/19:51:03

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: parse error
Date: Tue, 21 Dec 1999 23:29:00 +0000
Organization: Customer of Planet Online
Lines: 33
Message-ID: <vevv5s8l66japqf53dephhvjms0tfcsh4v@4ax.com>
References: <199912211215 DOT NAA25876 AT acp3bf DOT physik DOT rwth-aachen DOT de>
NNTP-Posting-Host: modem-4.calcium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 945819030 21499 62.136.9.132 (21 Dec 1999 23:30:30 GMT)
NNTP-Posting-Date: 21 Dec 1999 23:30:30 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> wrote:

> CR-only is a rare thing to come across. It's what you get in Apple
> Macintosh text files. But Mac users usually know they have to transfer
> text files as text, not binary, to other architectures, so this
> happens rather rarely, anyway. The fact that Macs store a 'file type'
> with each file, in their 'resource fork' probably helps to avoid this
> type of bug.
> 
> OTOH, you'll most probably see right away that something's wrong with
> such files, in any DOS or Windows editor, as soon as you open it. I
> wouldn't expect any of them to interpret such line endings without
> complaining loudly, so it's hard to believe any user could fail to
> notice this as the source of problems.

It can and does happen.  I'm not suggesting that this is a serious
failing of gcc but it is something users need to be aware of.

IMHO a decent editor will leave the line-endings intact and will give
the user the option to convert them.  Only lame editors (DOS-Edit ;)
mess with white space without telling the user.

> > Another thing to watch out for is make, the *nix version only accepts
> > NL line ends and will give some cryptic error messages if it
> > encounters a CR.
> 
> But that doesn't have any relevance to DJGPP make. It will take either
> Unix or DOS style line endings, without any noticeable difference.

It is something that DJGPP users who want to freely move between DOS
and *nix need to be aware of.  The resulting make error does not point
immediately to a transfer problem.  I was also wondering if the DJGPP
patch for this could be applied to the main distribution.

- Raw text -


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