🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #892

Re: Nntpxmit error 0 (I have the answer & fix)

#892
From: Fletcher Mattox
Date: Mon, 31 Dec 1990 19:50
23 lines
1846 bytes
In article <EMV.90Dec31135407@crane.aa.ox.com> emv@ox.com (Ed Vielmetti) writes:
>In article <16363@cs.utexas.edu> fletcher@cs.utexas.edu (Fletcher Mattox) writes:
>   The messages which passed through here actually had the eighth
>   bit turned on, 0xff.  This appears as DEL, 0x7f, in many pagers
>   and editors.  Some (broken) versions of putc() will extend the
>   sign and return -1.  
>
>There's comments in the ultrix (mips) 4.1 stdio.h saying that putc()
>was changed in 09 Nov 1989 to properly handle this case; I take that
>to mean that early mips ultrix might have had it broken (I'm fuzzy on
>dates).  It would be useful to know some more details of the systems
>where nntp fails (name, os level and release date, etc.)

Here's an example of a broken, sign-extending, putc:

#define putc(x,p) (--(p)->_cnt>=0? ((int)(*(p)->_ptr++=(unsigned)(x))):_flsbuf((unsigned)(x),p))

As best I can tell, this was present in early BSD stdio.h and was
fixed between 4.2 and 4.3.  I'm not sure how quickly it found its
way into other vendors' BSDish products, but I notice it was fixed
as far back as SunOS 3.2, and that it was broken in Dynix 3.0.4,
and fixed in Dynix 3.0.14.
Technical Details
Message-ID: <16367@cs.utexas.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!fletcher
References: <pst.662588576@ack.Stanford.EDU> <16363@cs.utexas.edu> <EMV.90Dec31135407@crane.aa.ox.com>

Show Full Headers
Complete Article Headers
Message-ID: <16367@cs.utexas.edu>
Subject: Re: Nntpxmit error 0 (I have the answer & fix)
Date: Mon, 31 Dec 1990 19:50:58 +0000
From: fletcher@cs.utexas.edu (Fletcher Mattox)
References: <pst.662588576@ack.Stanford.EDU> <16363@cs.utexas.edu> <EMV.90Dec31135407@crane.aa.ox.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!fletcher
Newsgroups: news.software.nntp
Organization: Dept of Computer Sciences, UTexas, Austin
Lines: 22