hybrid text/binary mount

Chris Faylor cgf@cygnus.com
Mon Apr 24 13:06:00 GMT 2000


On Mon, Apr 24, 2000 at 03:34:10PM -0400, DJ Delorie wrote:
>> I was thinking that if a file had any characters whose ASCII code was
>> < ' ' or >= DEL before the first \n, then the file would be considered
>> binary.  Otherwise, the file would be text.  You could apply this heuristic
>> to both input and output.
>
>It's hard to apply it to output, because you don't know what the
>program is going to write out.  At least on input, you can read a big
>chunk (buffering does this anyway) and run some tests on the existing
>data.

I think that most output is done in more than one character at a time
mode.

cgf


More information about the Cygwin-developers mailing list