X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp Subject: Re: setmode Date: Sun, 5 Apr 2009 05:04:12 -0400 Organization: Aioe.org NNTP Server Lines: 30 Message-ID: References: <83ljqgdchw DOT fsf AT gnu DOT org> <83bprccygw DOT fsf AT gnu DOT org> <83zlevbxki DOT fsf AT gnu DOT org> NNTP-Posting-Host: pldq+kT97bAAp/ObDwnZyQ.user.aioe.org X-Complaints-To: abuse AT aioe DOT org NNTP-Posting-Date: Sun, 5 Apr 2009 09:00:41 +0000 (UTC) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1933 X-Notice: Filtered by postfilter v. 0.7.7 X-Newsreader: Microsoft Outlook Express 6.00.2800.1933 Cancel-Lock: sha1:5NzzJGk1DLRn8OEnh8QlmRfROwo= X-Priority: 3 X-MSMail-Priority: Normal To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" 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... Rod Pemberton