Article View: news.software.nntp
Article #86734Re: How are supersedes and Message-ID being handled now?
From: Michael Baeuerle
Date: Mon, 04 May 2015 17:57
Date: Mon, 04 May 2015 17:57
79 lines
5695 bytes
5695 bytes
Joshua Cranmer π§ wrote: > On 5/4/2015 7:34 AM, Michael Baeuerle wrote: > > > > But that is not the case. Text is not only typed, but also copied via > > cut and paste from unknown sources or filled in automatically by click > > on something. Remember that Unicode has not only 2 canonical > > normalization forms, but also allow arbitrary order of codepoints with > > nonzero and different character combining class. Arbitrary levels of > > composition are also valid. > > All Unicode normalization forms enforce an ordering of combining code > points. Yes. Nevertheless, valid strings without any normalization are easily created simply by concatenation of data from different sources. Strings with the "wrong" normalization (not NFC in our case) can be created by filesystem drivers or other parts of the system (below the application). > > Some time ago I have created a small test program to demonstrate this > > for Unicode filenames (but the same can happen for every data that is > > used as name/identifier): > > Most filesystems treat filenames as arbitrary byte strings, not Unicode > strings. In particular, you can generally create, say, "\xE8" as a file > on an ext3 filesystem, and the filesystem wouldn't scream at you (UI > programs certainly might). The only real exception that I'm aware of is > HFS+, which uses NFD (what the?). > > That the ability to create non-NFC strings exists and that their use > can break programs does not disprove my claim that if you always use > NFC input, things usually just work. You expect that normalization is never applied and NFC, once created, stay NFC. This may be the case on many systems, but not on Apple machines. And I don't think they are "unusual" these days. > > I disagree. For fields like "Subject" this may be true. But for the > > fields with identifiers like "Message-ID", "References" or "Newsgroups", > > I have doubts. > > > > Think about software like leafnode which creates files with the name of > > groups and Message-IDs on disk and you already have the problems from my > > example above - on your disk. > > Most software that deals with Unicode that I am aware of considers > equality on a byte-for-byte basis. I know, but that's wrong. It is done because normalization is too expensive or not available at all. Unicode specify the semantics of canonically equivalence and it must be expected that they are implemented as intended. You can't blame e.g. Apple if they implement Unicode the way it is intended and defined by its creators. The reason why Apple has choosen NFD normalization may be that it is less expensive to create (the canonical composition step can be skipped). Another reason my be, that strings always are same length or shorter if normalized to NFC later (memory allocation, etc.). > Unicode identifiers in programming > languages which are equal after NFC but not before are considered > distinct; similar things happen for HTML/CSS id and class names. > Similarly, two message-ids that are equal only after NFC I would not > consider to be equivalent. But if you create filenames from them, they can't be distinct on some systems (even if you want this, the OS knows about canonically equivalence and don't allow it). If you try to create the files, they identify the same object - what is the correct and intended behaviour from the Unicode point of view. This requires some existing software to be rewritten (a kind of transfer encoding for filenames must be applied to break the Unicode semantics). > Or, to repeat, if you don't send non-NFC in the first place, it > generally just works. As Julien Γlie pointed out earlier, UTF-8 > newsgroups have been created before and do in fact work. It would be nice if Julien can write some more details (what things were tested and on what operating systems).
Technical Details
Message-ID:
<AABVR5XxImcAABH7.A1.flnews@WStation3.stz-e.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<mgfuq0$8ee$1@news.mixmin.net> <mggkev$j2u$1@dont-email.me> <mgst9h$nvr$1@news.mixmin.net> <mgtpgp$ije$1@dont-email.me> <mgv2ro$8u6$1@news.mixmin.net> <mh0e69$4d6$1@dont-email.me> <mh0puu$one$1@news.mixmin.net> <mh3qq9$6j5$1@dont-email.me> <mh4fbh$jft$1@news.mixmin.net> <mh714j$40v$1@dont-email.me> <mh77tl$emi$1@news.mixmin.net> <mh92h9$p83$1@dont-email.me> <mhtv8k$s1i$1@news.trigofacile.com> <mhupvp$3c6$1@dont-email.me> <mhvgje$j5p$1@news.trigofacile.com> <mi2pcd$cvl$1@dont-email.me> <AABVRjobIhkAAAoh.A1.flnews@WStation1.micha.freeshell.org> <mi5qh9$ebq$1@dont-email.me> <AABVRz0NTVsAAA1Q.A1.flnews@WStation3.stz-e.de> <mi81g2$i37$1@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <AABVR5XxImcAABH7.A1.flnews@WStation3.stz-e.de> Subject: Re: How are supersedes and Message-ID being handled now? Date: Mon, 04 May 2015 17:57:48 +0000 From: Michael Baeuerle <michael.baeuerle@stz-e.de> References: <mgfuq0$8ee$1@news.mixmin.net> <mggkev$j2u$1@dont-email.me> <mgst9h$nvr$1@news.mixmin.net> <mgtpgp$ije$1@dont-email.me> <mgv2ro$8u6$1@news.mixmin.net> <mh0e69$4d6$1@dont-email.me> <mh0puu$one$1@news.mixmin.net> <mh3qq9$6j5$1@dont-email.me> <mh4fbh$jft$1@news.mixmin.net> <mh714j$40v$1@dont-email.me> <mh77tl$emi$1@news.mixmin.net> <mh92h9$p83$1@dont-email.me> <mhtv8k$s1i$1@news.trigofacile.com> <mhupvp$3c6$1@dont-email.me> <mhvgje$j5p$1@news.trigofacile.com> <mi2pcd$cvl$1@dont-email.me> <AABVRjobIhkAAAoh.A1.flnews@WStation1.micha.freeshell.org> <mi5qh9$ebq$1@dont-email.me> <AABVRz0NTVsAAA1Q.A1.flnews@WStation3.stz-e.de> <mi81g2$i37$1@dont-email.me> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!buffer1.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!goblin3!goblin.stu.neva.ru!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Lines: 79 Reply-To: Michael Baeuerle <michael.baeuerle@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net YF7L847gS9BsVozrygxDDACJzauLMFdB1UbBqnjOn9L9E8fHqa X-Orig-Path: not-for-mail Cancel-Lock: sha1:bnMzgz7jF0IYDKheRdTFdnMPsqk= sha1:HiIsx9TW55dPoZWXczQtR5d+aEw= Injection-Date: 4 May 2015 17:57:48 -0000 User-Agent: flnews/0.11pre15 (for GNU/Linux)