Mail Archives: djgpp/1995/09/21/13:35:56
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 -