Article View: news.software.readers
Article #264282trn 4 and UTF-8 (was: Is there a way to respond to an expired article if you know the message ID?)
From: Adam H. Kerman
Date: Wed, 05 Aug 2020 17:32
Date: Wed, 05 Aug 2020 17:32
66 lines
3623 bytes
3623 bytes
I'm cutting alt.free.newsservers from crosspost
Eli the Bearded <*@eli.users.panix.com> wrote:
>Adam H. Kerman <ahk@chinet.com> wrote:
>>Eli the Bearded <*@eli.users.panix.com> wrote:
>>>trn is not the best newsreader with respect to newfangledness like
>>>"UTF-8", but it is the best newsreader with respect to "can be compiled
>>If I use UTF-8, trn expects me to add MIME headers, which I do. I don't
>>bother with ASCII.
>Yeah, but that's not the real issue(s). You can set up a default set
>of headers once and forget about it.
>1. As distributed, it has a bug stripping highbit control characters
> which munge UTF-8. The hack fix is use -j to disable all control
> character filtering. Real fix is to disable highbit control
> character filtering:
>--- 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++;
I didn't know that. Thank you for bringing it to my attention.
>2. When reading articles not in US-ASCII or the local encoding, trn
> makes no attempt to convert characters to the local encoding, but
> just dumps them to the screen. Typically (for me) this means
> ISO-8859-1 being sent raw to my UTF-8 system.
I want this as a feature. I refuse to use UTF-8 to send typographical
punctuation characters and especially nonbreaking whitespace, neither of
which belong in plain text communication. As much as possible, I
substitute genuine ASCII for typographical punctuation characters, and a
genuine whitespace character for nonbreaking whitespace.
Given that the display is messed up, it makes it easy to spot them. Yes,
I know I'm weird.
>3. Anywhere trn does string length checks (subject and from in newsgroup
> listings, headers and body lines in posts, warnings about lines too
> long when posting), those checks are not UTF-8 aware.
That's to be expected, but I'd hope I'm not coming anywhere close to the
998 character ceiling in which that would be an issue.
Here's something I don't know:
If I were complying with the standard, checking Subject for line length
as an example, is it against the encoded non-ASCII characters, or after
decoding? Now, that would make a substantial difference in the count.
>>Kids today are spoiled with newsreaders that do everything.
>That's why I read mail with mailx, too.
Hehehehehe
Technical Details
Message-ID:
<rgeqfo$6qp$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<rganif$m4h$1@neodome.net> <eli$2008041753@qaz.wtf> <rgcudk$j76$1@dont-email.me> <eli$2008051309@qaz.wtf>Show Full Headers
Complete Article Headers
Message-ID: <rgeqfo$6qp$2@dont-email.me> Subject: trn 4 and UTF-8 (was: Is there a way to respond to an expired article if you know the message ID?) Date: Wed, 05 Aug 2020 17:32:40 +0000 From: "Adam H. Kerman" <ahk@chinet.com> References: <rganif$m4h$1@neodome.net> <eli$2008041753@qaz.wtf> <rgcudk$j76$1@dont-email.me> <eli$2008051309@qaz.wtf> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 66 Injection-Date: Wed, 5 Aug 2020 17:32:40 -0000 (UTC) Cancel-Lock: sha1:zzvNoGPsXqk42/7g1dqkksKVBFw= X-Newsreader: trn 4.0-test77 (Sep 1, 2010)