🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #262954

Re: trn has a -j option to not mangle 8 bit characters. Does rn have such an option? Where can I get rn source code?

#262954
From: Eli the Bearded
Date: Mon, 08 Oct 2018 19:51
50 lines
3359 bytes
In news.software.readers,  <petertrei@gmail.com> wrote:
> I've been able to read, reply to, and post UTF-8 messages with trn, using the 
> -j option, and adding the Content-Type and Content-Type-Encoding headers.

I posted a patch relevant to that to this group several months ago:

    From: Eli the Bearded <*@eli.users.panix.com>
    Newsgroups: news.software.readers
    Subject: UTF-8 "fix" for trn4-77
    Date: Fri, 2 Mar 2018 01:53:05 +0000 (UTC)
    Message-ID: <eli$1803012051@qz.little-neck.ny.us>

The patch changes just a single line in one file:

    --- trn-4.0-test77/art.c.orig   2010-09-02 02:12:26.000000000 -0400
    +++ trn-4.0-test77/art.c        2018-03-01 20:15:59.000000000 -0500
    @ -468,7 +468,7 @@
                            outpos += 2;
                        }
                        else {              /* other control char */
    -                       if (dont_filter_control) {
    +                       if (dont_filter_control || (*bufptr & 0x80)) {
                                if (outputok)
                                    putchar(*bufptr);
                                outpos++;

The effect is to make -j only operate on ASCII 0-31, instead of ASCII 0-31
AND 128-159. That latter group being critical for UTF-8.

> I'd like to find out if the same can be done in rn.

My patch could probably be tweaked for the original rn.

> Ideally, could someone point me at a site where I can download the rn
> source code? I built trn using code downloaded from sourceforge.

First off, trn3.6 source should compile an rn, and that shouldn't be
hard to find. Here's one I found quickly:

http://ftp.vim.org/ftp/ftp/pub/ibiblio/distributions/slack390/slack390-9.1/source/n/trn/

But if you really want legacy rn:

http://ftp.sunet.se/mirror/archive/ftp.sunet.se/pub/usenet/ftp.uu.net/comp.sources.unix/volume1/rn/

Source code from 1985 tends to be difficult to compile in my experience.

Elijah
------
tried to compile perl 1.0 not too long ago
Technical Details
Message-ID: <eli$1810081549@qaz.wtf>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <3444f017-eefd-420d-bda5-43bc68e72c83@googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <eli$1810081549@qaz.wtf>
Subject: Re: trn has a -j option to not mangle 8 bit characters. Does rn have such an option? Where can I get rn source code?
Date: Mon, 08 Oct 2018 19:51:08 +0000
From: Eli the Bearded <*@eli.users.panix.com>
References: <3444f017-eefd-420d-bda5-43bc68e72c83@googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: Some absurd concept
Lines: 50
NNTP-Posting-Host: panix5.panix.com
X-Trace: reader1.panix.com 1539028268 22699 166.84.1.5 (8 Oct 2018 19:51:08 GMT)
X-Complaints-To: abuse@panix.com
NNTP-Posting-Date: Mon, 8 Oct 2018 19:51:08 +0000 (UTC)
X-Liz: It's actually happened, the entire Internet is a massive game of Redcode
X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix
X-US-Congress: Moronic Fucks.
X-Attribution: EtB
XFrom: is a real address
Encrypted: double rot-13
User-Agent: Vectrex rn 2.1 (beta)
X-Comments: "'Pray that I don't alter the bargain further.'
  Welcome Darth Google."
  -- HonorableSoul
X-Received-Bytes: 3241
X-Received-Body-CRC: 3963814092