Date: Wed, 16 Sep 1998 10:28:10 +0200 (WET) From: Andris Pavenis To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: Re: auto-binary-mode? In-Reply-To: <199809152120.RAA08510@delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 15 Sep 1998, DJ Delorie wrote: > > Hey, I just had an idea. When a file is opened and the first block is > read in, if the user didn't specify binary or text, why not look at > the data and try to guess? The presence of null, control, or certain > 8-bit characters should indicate binary vs text as a default. > Maybe slightly different: we can add additional open mode to allow to guess file type for example O_AUTO. Or some global variable that enables such feature. I don't think it would be good to enable it always. Andris