www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/04/05/05:16:22

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Rod Pemberton" <do_not_have AT nohavenot DOT cmm>
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: <gr9rvo$5tj$1@aioe.org>
References: <gr3fv1$s9f$1 AT aioe DOT org> <uk561j05t DOT fsf AT gnu DOT org> <gr72bt$tjk$1 AT aioe DOT org> <83ljqgdchw DOT fsf AT gnu DOT org> <gr7gu5$aou$1 AT aioe DOT org> <83bprccygw DOT fsf AT gnu DOT org> <gr8qm6$e8p$1 AT aioe 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" <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...


Rod Pemberton







- Raw text -


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