delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/09/16/08:50:28

Message-Id: <m0zJGzd-000S4fC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: djgpp-workers AT delorie DOT com, dj AT delorie DOT com
Date: Wed, 16 Sep 1998 09:50:42 +0000
MIME-Version: 1.0
Subject: Re: auto-binary-mode?
References: <199809152120 DOT RAA08510 AT delorie DOT com>
In-reply-to: <Pine.A32.3.91.980916102605.59926A-100000@ieva01.lanet.lv>

Andris Pavenis <pavenis AT lanet DOT lv> wrote:

> 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.

I agree with Andris and Morten, it must be an optional switch.

SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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