Mail Archives: djgpp/2009/04/05/14:18:10
> From: "Rod Pemberton" <do_not_have AT nohavenot DOT cmm>
> Date: Sun, 5 Apr 2009 05:04:12 -0400
>
> "Eli Zaretskii" <eliz AT gnu DOT org> wrote in message
> news:83zlevbxki DOT fsf AT gnu DOT org...
> >
> > Patches are welcome, of course.
> >
>
> Unfortunately, I suspect that the "correct" fix for the problem is to
> convert DJGPP to support a single stream mode exclusively, like many POSIX
> environments having a binary mode but no text mode. E.g., for DJGPP, I'd
> consider:
>
> 1) eliminating text streams from DJGPP by implementing all streams as
> binary, e.g., setting stdin, stdout, stderr to binary via setmode() method
> upon startup
> 2) converting to a single character linefeed, e.g., LF only instead of CRLF,
> for simpler code support of binary streams
> 3) installing a RM int 0x29 routine as part of execution startup which
> will convert LF's to CRLF's for display, but not for file redirection
>
> I'm sure that is far beyond what you had in mind...
Far beyond, because I don't see any need for this complexity. All
that's needed is a single call to `dup' or `dup2' to copy the existing
handle.
- Raw text -