www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/27/08:57:24

Date: Tue, 27 Jul 93 08:01:04 -0400
From: DJ Delorie <dj AT ctron DOT com>
To: michaels AT vsl DOT com DOT au
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: creat doesn't use proper default filetype

> > When porting a copy of apps that use creat I noticed that the files
> > opened were in "binary" mode instead of the default text mode.

> gcc is meant to open files in binary mode by default, which is what unix all
> compilers do. Text mode is the default for DOS compilers :-)

No, all files are supposed to be opened in text mode unless told
otherwise.  After all, this *is* a DOS compiler.  The creat bug
really is a bug.

DJ



- Raw text -


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