Thread View: news.software.readers
2 messages
2 total messages
Started by petertrei
Mon, 08 Oct 2018 14:17
trn has a -j option to not mangle 8 bit characters. Does rn have such an option? Where can I get rn source code?
Author: petertrei
Date: Mon, 08 Oct 2018 14:17
Date: Mon, 08 Oct 2018 14:17
11 lines
1464 bytes
1464 bytes
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'd like to find out if the same can be done in 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. thanks, pt
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?
Author: Eli the Bearded
Date: Mon, 08 Oct 2018 19:51
Date: Mon, 08 Oct 2018 19:51
50 lines
3359 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads