🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #265970

Re: I'm hacking on trn...want to join me?

#265970
From: Michael Bäuerle
Date: Wed, 12 Apr 2023 13:32
36 lines
2841 bytes
Adam H. Kerman wrote:
> 
> [...]
> Still, there's just no way to fix up multi-level quotes that used
> different character sets mis-translated without the user going back to
> the original text to figure out what it was supposed to be and then
> translating it consistently with the rest of the text.

If it already happened, this is something that is hard to impossible
to repair for some encodings. Most newsreaders don't even try and
such a repair algorithm is not what I had in mind.


What I wanted to propose is that trn does not create and send such
mixture of encodings and correctly label the encoding used according
to MIME (the problem is that trn users produce such broken articles,
not that they cannnot read them).

It looks like the users don't know what they are doing (not really the
fault of trn in this sense) and their editor is not configured for the
encoding of the content that is quoted. Maybe it is too inconvenient to
change the encoding configuration.

I think such mistakes would not occur if trn would automatically convert
the content to quote into the encoding used by the editor.
The source encoding is declared in the MIME header of the article.
The target encoding should be the one the editor is using (manually
configured, if trn cannot automatically detect it).
The conversion itself can be done with iconv.
This would preserve the users choice for the target encoding (would
not enforce the usage of Unicode).

If the user has configured e.g. US-ASCII to quote an article written in
Unicode, replacement characters should be inserted if the encoding
conversion is not possible (instead of simply copying the bytes that are
then interpreted wrong by the editor and the recipients).
Technical Details
Message-ID: <AABkNrMFcqkAAAFo.A3.flnews@WStation5.stz-e.de>
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
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> <u143j5$2m3va$4@dont-email.me>

Show Full Headers
Complete Article Headers
Message-ID: <AABkNrMFcqkAAAFo.A3.flnews@WStation5.stz-e.de>
Subject: Re: I'm hacking on trn...want to join me?
Date: Wed, 12 Apr 2023 13:32:53 +0000
From: Michael Bäuerle <michael.baeuerle@stz-e.de>
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> <u143j5$2m3va$4@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-mail
Lines: 36
X-Orig-Path: not-for-mail
Newsgroups: news.software.readers
User-Agent: flnews/1.2.0pre21 (for NetBSD)
Mime-Version: 1.0
X-Trace: individual.net n1kom9H362E6Hhqtg1kTTgmvLhqWwRaCKkf7L+BwaezDyRV4jB
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Cancel-Lock: sha1:5WusrklOSKTUJz/KdFPetNlgCiE= sha256:Q4JMJidb+XFKmSVf+Z9Do4dtWuqIFKJezNmamzAfH+o= sha1:71sIkN0u2Bybx+6U1/HrfHxDZ28=
Injection-Date: Wed, 12 Apr 2023 13:32:53 -0000