Date: Thu, 21 Sep 1995 18:45:35 +0200 (IST) From: Eli Zaretskii To: Damien Gardner 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.