🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #44529

Re: [NNTP Draft] 5. The WILDMAT format

#44529
From: Curt Welch
Date: Sun, 27 Feb 2000 00:00
71 lines
3486 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> wrote:
> >>>>> "Curt" == Curt Welch <curt@kcwc.com> writes:
>
>  >> >   [UTF-8 everywhere]
>
>  Curt> Ok, I admit it.  I have no idea what UTF-8 is.  Can someone
>  Curt> point me to a standard?
>
> RFC 2279

Thanks, time for some more homework.

>  Curt> Is it just an 8 bit character set which is a superset of
>  Curt> ASCII or is it something more complex (like multi-byte
>  Curt> characters).
>
> The latter.

Ouch.

> It's an encoding scheme for ISO 10646, that has these
> main properties:
>
>    - US-ASCII is a subset of UTF-8 (all strings of octet values 00-7F
>      are valid UTF-8 sequences representing the same characters)
>
>    - Values 00-7F do not appear in UTF-8 other than for US-ASCII
>      characters
>
>    - conversion between UTF-8 and UCS-2 or UCS-4 and back is easy
>
>    - character boundaries are easily determined starting from any
>      position in a string
>
>    - preserves the lexicographic sorting order (although this is not
>      culturally meaningful)
>
>    - UTF-8 strings can be fairly reliably recognized as such by a
>      simple algorithm, i.e. the probability that a string of characters
>      in any other encoding appears as valid UTF-8 is low, diminishing
>      with increasing string length.

Ok, that doesn't sound so bad.

At the NNTP level, it seems like there's very few changes needed to
support a code like that.  If you don't end up with NULLS, CRs, or LFs
or DOTs that aren't what they seem to be, then all the basic protocol
line/data parsing will stay the same.

I'm guessing that UTF-8 is not allowed in Message-IDs?  I see no point
in doing that.  So that means it only shows up in newsgroup names in
and article text right?  So for newsgroup names, all you need do is
extend the set of valid characters to include hex 10 to ff.  That would
allow for (I assume) a lot of things that were not valid UTF-8 sequences,
but then it makes the server very flexible.

Article text is mostly transparent to an NNTP server anyway, and if UTF-8
doesn't prevent the server from parsing the headers, then there's no
change there either (execpt once again maybe making sure that the full
8 bit range of characters are allowed).

So the only place I can think of where you really have to deal with the
UTF-8 character parsing is in the wildmat code.  That's not bad.

Did I miss something?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <20000227013906.684$0P@newsreader.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <87snyfd367.fsf@erlenstar.demon.co.uk> <1rem9z72od.fsf@haey.ifi.uio.no> <20000227000429.167$iK@newsreader.com> <87r9dz8be6.fsf@erlenstar.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <20000227013906.684$0P@newsreader.com>
Subject: Re: [NNTP Draft] 5. The WILDMAT format
Date: Sun, 27 Feb 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <87snyfd367.fsf@erlenstar.demon.co.uk> <1rem9z72od.fsf@haey.ifi.uio.no> <20000227000429.167$iK@newsreader.com> <87r9dz8be6.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 590520220
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp