🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #257752

Re: I prefer raw UTF·8 over raw "encoded words".

#257752
From: Michael Baeuerle
Date: Sun, 25 May 2014 09:45
74 lines
4595 bytes
Shmuel Metz wrote:
> Michael Baeuerle wrote:
> > 
> > It is the same problem as with Unicode filenames. Take a NFS server
> > and create a file with GNU/Linux on it over the network. Then take 
> > a Mac and do the same (in the same directory).
> 
> With the same name or with different names?

The same name as types on the keyboard or cut&paste (but with potential
different, but canonically equivalent representation in the filesystem).

> > (because the common normalization form is different on these 2 
> > systems).
> 
> Do they normalize names?

On GNU/Linux systems there is normally no normalization at all. Names
are bytestreams and are handled "as is". There are good chances that you
have precomposed data here because things like "ä" (with an own key on
the german keyboard) are stored in the ISO8859-1 equivalent
representation.

The VFS API on MacOS X use the NFD normalization as default:
https://developer.apple.com/qa/qa2001/qa1173.html

The NFS network protocol has no normalization rules.
(but the local filesystems of the server may have them again).

> > Again, you may want to search for a Message-ID and type
> 
> Do people do that instead of cut-and-paste? That seems error prone
> even in ASCII.

With cut&paste the same problem can occur (if some normalization was
applied before displaying the text). Note that it is allowed for
every layer to normalize because the representations are canonically
equivalent in the sense of Unicode.

> > Level one is the transformation format ("UTF"). There are invalid
> > codes or code sequences for all newer versions like UTF-8, UTF-16
> > and UTF-32.
> 
> There are certainly octet sequences that are not valid UTF-8, but the
> transformation from valid Unicode to UTF-8 is 1-1.

A more precise definition of what "Unicode" means is required here.

One thing is not the case:
Not every codepoint sequence that is valid in UTF-16 representation is
also a valid codepoint sequence in UTF-8 representation: The surrogate
codepoint pairs must be converted to the corresponding target
codepoints first to be valid again.

> > Text with mixed representations
> 
> The issues in text are different from the issues in the header, where
> identifiers are normally generated or copied. Also, are there cases
> where normalization form NFC is ambiguous?

No, the standard normalization forms are unambigous.

But a news server don't want to normalize every header itself before
processing it (because of performance reasons).
 
> > Maybe things are not much better than with MIME
> 
> How is raw UTF-8 worse than MIME encoded UTF-8?

It's not worse. But it's not better than MIME encoded ISO8859 too
(in the sense of being easier to handle).


Micha
Technical Details
Message-ID: <AABTgbui+zwAAAIC.A1.flnews@WStation1.micha.freeshell.org>
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!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <AABTdHqgK58AABXP.A1.flnews@WStation2.stz-e.de> <AABTdHwyK6EAABXP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{2.47.Seattle.2014}> <AABTdJlxK6MAABXP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{6.10.Seattle.2014}> <AABTdNKdERgAAAiK.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{13.10.Seattle.2014}> <AABTdT6Y83UAAEau.A1.flnews@WStation4.micha.freeshell.org> <537a2a8b$13$fuzhry+tra$mr2ice@news.patriot.net> <AABTejLuQ3kAACG8.A1.flnews@WStation2.stz-e.de> <537a9009$20$fuzhry+tra$mr2ice@news.patriot.net> <AABTfFr7YfEAAAFB.A1.flnews@WStation2.stz-e.de> <537d1bf0$32$fuzhry+tra$mr2ice@news.patriot.net> <AABTfh0HF+UAAAbo.A1.flnews@WStation1.micha.freeshell.org> <537f7304$15$fuzhry+tra$mr2ice@news.patriot.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABTgbui+zwAAAIC.A1.flnews@WStation1.micha.freeshell.org>
Subject: Re: I prefer raw UTF·8 over raw "encoded words".
Date: Sun, 25 May 2014 09:45:06 +0000
From: Michael Baeuerle <michael.baeuerle@gmx.net>
References: <AABTdHqgK58AABXP.A1.flnews@WStation2.stz-e.de> <AABTdHwyK6EAABXP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{2.47.Seattle.2014}> <AABTdJlxK6MAABXP.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{6.10.Seattle.2014}> <AABTdNKdERgAAAiK.A1.flnews@WStation2.stz-e.de> <Jeff-Relf.Me@May.15{13.10.Seattle.2014}> <AABTdT6Y83UAAEau.A1.flnews@WStation4.micha.freeshell.org> <537a2a8b$13$fuzhry+tra$mr2ice@news.patriot.net> <AABTejLuQ3kAACG8.A1.flnews@WStation2.stz-e.de> <537a9009$20$fuzhry+tra$mr2ice@news.patriot.net> <AABTfFr7YfEAAAFB.A1.flnews@WStation2.stz-e.de> <537d1bf0$32$fuzhry+tra$mr2ice@news.patriot.net> <AABTfh0HF+UAAAbo.A1.flnews@WStation1.micha.freeshell.org> <537f7304$15$fuzhry+tra$mr2ice@news.patriot.net>
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!border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.bnb-lp.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 74
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net lHj0dwJBdZT1tjcN0q/WMQOBOuEvTi7hz+e52OlqzwDEE66I5X
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:UwuQoHMGyFwurjId6Jk925v0Sxs=
Injection-Date: 25 May 2014 09:45:06 -0000
User-Agent: flnews/0.7 (for GNU/Linux)
X-Original-Bytes: 4327