πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #84661

Re: UTF-8 message-IDs

#84661
From: Russ Allbery
Date: Mon, 13 Feb 2012 20:52
31 lines
2649 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Regarding message-IDs in UTF-8, well, hmmm...  there is a message in
> USEFOR that is worthwhile to read:

>     http://www.imc.org/ietf-usefor/mail-archive/msg04791.html

> I still have not asked in inn-workers what would be the best to do for
> an implementation in INN.  Internationalization is happening in mail
> headers; UTF-8 message-IDs will soon appear in mail... and also probably
> in netnews...

I'm dubious that mail will actually introduce UTF-8 message IDs, but
possibly they will without realizing the consequences since mail doesn't
care as much about message ID uniqueness and comparison.

The huge problem with UTF-8 message IDs in netnews is that, unlike with
ASCII, there is not one unique way to express a given character in UTF-8.
There are often multiple different ways that should compare equal but
which won't in a byte-for-byte comparison, and it can be literally
impossible to tell them apart in a compliant UTF-8 display.  That means
that if we introduce UTF-8 in message IDs, we should do normalization
before comparison, which means that you introduce Unicode normalization
(which is not a particularly cheap operation) into the most
performance-critical path in a news server.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87pqdiwj5h.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
References: <jhb1ub$ftf$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87pqdiwj5h.fsf@windlord.stanford.edu>
Subject: Re: UTF-8 message-IDs
Date: Mon, 13 Feb 2012 12:52:26 -0800
From: Russ Allbery <rra@stanford.edu>
References: <jhb1ub$ftf$1@news.trigofacile.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.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!newsfeed.news.ucla.edu!usenet.stanford.edu!usenet-its.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 31
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Trace: usenet-its.stanford.edu 1329166346 32690 171.67.225.134 (13 Feb 2012
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock: sha1:Qt3ifWfLV8MEzpGIAuUl/DVYxYo=