🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #208838

Re: status of slrn

#208838
From: Urs Janßen
Date: Tue, 16 Oct 2007 10:11
25 lines
2493 bytes
In <slrnfh8abd.uo.jed@aluche.mit.edu>, John E. Davis wrote:
> I can use similar functions from the slang library to check the
> validity of UTF-8.  However, I would rather that the RE library itself
> dealt with such issues.  For example, I think that "foo.*bar" should
> match an illegal sequence such as "foo???bar".

that is what happens inside tin (which uses pcre) - tin calls
utf8_vaild() for each utf-8 string (which masks illegal utf-8
sequences with '?', your example above shows up as "foo???bar" /
"foo\253\315\357bar" (in 'raw' mode)) before doing any further
actions on that string.

> I am also curious to see how slrn is going to handle the illegal UTF-8
> sequence.  In my opinion, it should permit me to post it without
> converting it to, e.g., '?' characters.

tin does not allow you to post such thins (again utf8_valid()), IMHO
that's what newsreaders should do (be conservative in what you
create), but AFAIK there is no RFC (one could stress RFC 793) which
regulates this.

anyway, Oniguruma might be as good as PCRE (never had a closer look
at Oniguruma as I'm happy with pcre for about 10 years now).

urs
Technical Details
Message-ID: <ff22nu$3r2$1@news2.rz.uni-karlsruhe.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail
References: <slrnfh4nnm.m6a.davis@aluche.mit.edu> <slrnfh6cf0.vg8.pjr@pjr.gotdns.org> <slrnfh75bh.inb.jed@aluche.mit.edu> <ff0hso$acv$1@news2.rz.uni-karlsruhe.de> <slrnfh8abd.uo.jed@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <ff22nu$3r2$1@news2.rz.uni-karlsruhe.de>
Subject: Re: status of slrn
Date: Tue, 16 Oct 2007 10:11:10 +0000
From: Urs Janßen <urs@buil.tin.org>
References: <slrnfh4nnm.m6a.davis@aluche.mit.edu> <slrnfh6cf0.vg8.pjr@pjr.gotdns.org> <slrnfh75bh.inb.jed@aluche.mit.edu> <ff0hso$acv$1@news2.rz.uni-karlsruhe.de> <slrnfh8abd.uo.jed@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail
Newsgroups: news.software.readers
Organization: tin.org
Lines: 25
Sender: Urs Janßen <urs@akk10-int.akk.uni-karlsruhe.de>
NNTP-Posting-Host: akkuser-dmz.akk.uni-karlsruhe.de
X-Trace: news2.rz.uni-karlsruhe.de 1192529470 3938 172.22.9.237 (16 Oct 2007
X-Complaints-To: usenet@rz.uni-karlsruhe.de
NNTP-Posting-Date: Tue, 16 Oct 2007 10:11:10 +0000 (UTC)
Cancel-Lock: sha1:8pzPK1TrV6paaGs6nBLzh1EX87M=
X-No-Archive: yes
X-No-HTML: yes
User-Agent: tin/1.9.3-20071013 ("Dalaruan") (UNIX) (Linux/2.6.11-1-686 (i686))