Article View: news.software.readers
Article #265998Re: I'm hacking on trn...want to join me?
From: Eli the Bearded
Date: Mon, 17 Apr 2023 22:42
Date: Mon, 17 Apr 2023 22:42
48 lines
3224 bytes
3224 bytes
In news.software.readers, Richard <> wrote: > "Adam H. Kerman" <ahk@chinet.com> spake the secret code >> I'm guessing that what's breaking articles is a mix of UTF-8 and >> 8-bit used by different users, then not declaring which one is in use >> in followup. In standard trn version 4, UTF-8 gets hosed because trn tries to strip control characters, and includes the 32 octets starting at 128 in that. Disabling the control character squash with -j helps, or you can make a ~ one line patch to the code to not squash highbit "control" characters. That's a display-for-the-user problem. Separately, there's a problem in display, if you have a utf-8 terminal (as is correct) and encounter a properly headered nonASCII, nonUTF8 post using highbits. Then trn just feeds raw wrong-charset stuff to your terminal. The acli trn fork fixes that. Thirdly there's a what-gets-sent issue if you don't post with correct MIME headers and people read with some tool expecting them. That's the not-declarining issue. > Didn't we conclude on this thread that it's up to the user to set the > headers correctly? Setting headers is tedious, tedium is best for computers. > Technically, trn doesn't do the posting; inews does the posting as a > separate program after having invoked your editor on the post. Kinda right, but not always. trn can act as inews for you. But it's true that trn always uses an external program as post editor, and that can correct headers for the user. Before acli trn existed, I modified my Pnews to lint check the highbit characters in my posts and warn me of mismatched headers. > You could improve this yourself by setting NEWSPOSTER to a different > program/script that does this detecting and munging of the headers > before invoking inews. Depending on your install, NEWSPOSTER may just be looking for the first Pnews on the PATH. When I was new to shell scripting, I found Pnews and Rnmail to be excellent examples of how to do powerful stuff in lowest-common-denominator sh. Elijah ------ modified his mailx to use Rnmail, too, for header editing
Technical Details
Message-ID:
<eli$2304171842@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-mailReferences:
<u0ffth$1u1oi$1@news.xmission.com> <u127t0$27k3v$1@news.xmission.com> <u129dh$2c6tu$1@dont-email.me> <u141o0$28gtp$1@news.xmission.com>Show Full Headers
Complete Article Headers
Message-ID: <eli$2304171842@qaz.wtf> Subject: Re: I'm hacking on trn...want to join me? Date: Mon, 17 Apr 2023 22:42:16 +0000 From: Eli the Bearded <*@eli.users.panix.com> References: <u0ffth$1u1oi$1@news.xmission.com> <u127t0$27k3v$1@news.xmission.com> <u129dh$2c6tu$1@dont-email.me> <u141o0$28gtp$1@news.xmission.com> 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: Some absurd concept Injection-Date: Mon, 17 Apr 2023 22:42:16 -0000 (UTC) Injection-Info: reader2.panix.com; posting-host="panix5.panix.com:166.84.1.5"; logging-data="27100"; mail-complaints-to="abuse@panix.com" User-Agent: Vectrex rn 2.1 (beta) 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