www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/09/21/13:35:56

Date: Thu, 21 Sep 1995 18:45:35 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Damien Gardner <dgardner AT mcsilo DOT ilo DOT dec DOT com>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Problem with crt0 and DOS format files.

On Tue, 19 Sep 1995, Damien Gardner wrote:

> The cause was my DJGPP.ENV file was save in DOS format with the CR+LF line
> endings instead of Unixes LF.
> 
> The code for ___crt0_load_environment_file looks like it should handle the
> extra '\r' character in DOS but it doesn't do so all the time.

I edit my DJGPP.ENV all the time with a DOS editor which adds \r 
characters and never had such problems.  AFAIK, crt0 opens the file in 
TEXT mode, where the \r characters are stripped by a low-level library 
routine which reads it, so the code doesn't have to bother about them.

- Raw text -


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