🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
85 messages
85 total messages Page 1 of 2 Started by Jeff-Relf.Me Tue, 14 Feb 2012 01:53
Page 1 of 2 • 85 total messages
--
#248573
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 01:53
24 lines
2327 bytes

Michael•Moroney, a UTF·8 Message·ID in an encoded word looks like:
« =?UTF-8?Q?<aaaaa@bbbb.ccc>?= » ── truly invalid.

In contrast, a stream of 8·bit bytes ·can· be a valid Message·ID, e.g.:
« <⦿✚Φς@✼⌾◢◣⌽> » ── doesn't matter if it's displayed as UTF·8 or not.

INN dropping posts (from peers) manifestly rejects a core principle:

  Be liberal in what you accept, and conservative in what you send.

Julien•ÉLIE, Steve•Crook and Russ•Allbery are leading the way here.
In dropping "Text/HTML" (from peers), Ray Banana took it up a notch.

The « Content-Type: Text/HTML; charset=UTF-8 » line in the header
of a post applies to the header... that's how it actually works in
Google Groups, Thunderbird, Outlook, Windows Live Mail, etc.

Forte Agent can't display anything beyond its Western European font.
Even the mighty slrn can't display double·wide fixed·with glyphs
as found in the peerless "MS Mincho" font ( e.g. ♚♛♜♝♞♟ ).
 
When it comes to HTML, Forte Agent knows almost nothing;
because it's not a mainstream email client.
Re:  Jeff Relf has set a bad example.
#248579
Author: Michael Moroney
Date: Tue, 14 Feb 2012 04:36
30 lines
2447 bytes
Jeff Relf writes:

> Michael▒Moroney,

My name is not "Michael▒Moroney", it is "Michael Moroney" (without
quotes).

> a UTF·8 Message·ID in an encoded word looks like:

> =?UTF-8?Q?<aaaaa@bbbb.ccc>?
No it does not.  You should know better than that, a Message-ID always
starts with "<" and ends with ">".

It would be of the form <=?UTF-8?Q?aaaaa@bbbb.ccc?=>
Or <xxxxx=?UTF-8?Q?aaaaa?=yyyy@bbbb.bbb> or a bunch of other combos.
Of course, it could be BIG5, KOI-8 or whatever as well.

See this post for an example.

> INN dropping posts (from peers) manifestly rejects a core principle:

>   Be liberal in what you accept, and conservative in what you send.

So why aren't you following your own advice and being conservative with
what you send? I've asked you a couple of times, you never answer.

(actually, in these days of malicious hacking, "being liberal in what you
accept" may not always be so wise. You have to be defensive enough so that
what you accept doesn't harm you or anyone else)
Re:  Jeff Relf has set a bad example.
#248580
Author: Russ Allbery
Date: Tue, 14 Feb 2012 04:57
37 lines
3367 bytes
moroney@world.std.spaamtrap.com (Michael Moroney) writes:

> (actually, in these days of malicious hacking, "being liberal in what
> you accept" may not always be so wise. You have to be defensive enough
> so that what you accept doesn't harm you or anyone else)

That's the reason why there's a bunch of additional explanation around the
principle in RFC 5537:

   As applied to Netnews, this primarily means that unwanted or non-
   compliant articles SHOULD be rejected as early as possible, but once
   they are in general circulation, relaying and serving agents may wish
   to accept them where possible rather than lose information.  Posting
   agents and injecting agents SHOULD therefore be maximally strict in
   their application of both this protocol and [RFC5536], and reading
   agents SHOULD be robust in the presence of violations of the Netnews
   article format where possible.

The reason why INN is even more conservative about Message-ID is because
Message-ID is one of the small handful of headers that's critical for the
netnews flood-fill algorithm to work properly and not create pathological
meltdown situations, such as endless article duplication.  So INN is
particularly picky about what message IDs it's willing to deal with.

(There are other operational issues with bad message IDs, too, such as
that a bad message ID can result in error handling behavior from a peer
that is difficult to detect as a reject because it triggers a crash or an
unhelpful syntax error reponse instead of a reject of a particular message
ID.  This can, and has with other message ID problems in the past, block
sending other articles to the peer because it looks like a temporary
network failure, which should trigger a retry of the same articles.)

-- 
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.
Re:  Jeff Relf has set a bad example.
#248582
Author: Junior
Date: Tue, 14 Feb 2012 05:07
34 lines
3174 bytes
Russ Allbery wrote:
> moroney@world.std.spaamtrap.com (Michael Moroney) writes:
>
>> (actually, in these days of malicious hacking, "being liberal in what
>> you accept" may not always be so wise. You have to be defensive enough
>> so that what you accept doesn't harm you or anyone else)
>
> That's the reason why there's a bunch of additional explanation around the
> principle in RFC 5537:
>
>    As applied to Netnews, this primarily means that unwanted or non-
>    compliant articles SHOULD be rejected as early as possible, but once
>    they are in general circulation, relaying and serving agents may wish
>    to accept them where possible rather than lose information.  Posting
>    agents and injecting agents SHOULD therefore be maximally strict in
>    their application of both this protocol and [RFC5536], and reading
>    agents SHOULD be robust in the presence of violations of the Netnews
>    article format where possible.
>
> The reason why INN is even more conservative about Message-ID is because
> Message-ID is one of the small handful of headers that's critical for the
> netnews flood-fill algorithm to work properly and not create pathological
> meltdown situations, such as endless article duplication.  So INN is
> particularly picky about what message IDs it's willing to deal with.
>
> (There are other operational issues with bad message IDs, too, such as
> that a bad message ID can result in error handling behavior from a peer
> that is difficult to detect as a reject because it triggers a crash or an
> unhelpful syntax error reponse instead of a reject of a particular message
> ID.  This can, and has with other message ID problems in the past, block
> sending other articles to the peer because it looks like a temporary
> network failure, which should trigger a retry of the same articles.)

Makes sense to me. Thanks, Russ.
--
#248584
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 05:08
24 lines
2222 bytes

« <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=> » is not a valid encoded word.
Encoded words break on words; the <·symbol is part of the word.

« <?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?> », without the =? ?= brackets,
is most definately not an encoded word.
Apparently, you're running something that strips out =·symbols.

Besides, the unencoded version might be the intended Message·ID; e.g. 
your message·ID is « <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=> », not « ❚@❚ ».

Better servers aren't net·nannies, they let me decide what's what.
So ( for them, not me ) the principle is: 

  Be liberal in what you accept, and conservative in what you send.

I'm a single person, not a server, I don't have to conform.

Normally, I wouldn't care, I'd just use a server
that ·already· works the way I want.

But, because Goolge Groups uses INN ( and I don't want to exclude GG ),
I'd like INN to allow high bit Message·IDs.
It'll never happen of course, but I can state my desires.
Re:  Jeff Relf has set a bad example.
#248583
Author: Demented Traveler
Date: Tue, 14 Feb 2012 05:09
21 lines
2767 bytes
On 13/02/2012 11:57 PM, Russ Allbery wrote:
> The reason why INN is even more conservative about Message-ID is because
> Message-ID is one of the small handful of headers that's critical for the
> netnews flood-fill algorithm to work properly and not create pathological
> meltdown situations, such as endless article duplication.  So INN is
> particularly picky about what message IDs it's willing to deal with.

It occurs to me that this, and similar, problems could always be solved 
by forcing every received message-ID into a specific format. (Ex: strip 
the high bit and change any control character to a ? character.) The key 
is for this transformation to be idempotent. Any article will end up 
with at most two copies this way (one with an initial, screwy message-ID 
and one with the normalized version) and only one on a server that does 
normalization. That server will also not cause problems via its outbound 
messages (as they will all have normalized message IDs). Crucially, 
messages with ASCII message IDs won't cause any new problems, and 
messages with high-bit message IDs that are injected to servers that 
normalize won't cause problems.

As for References, treating that server-side as just octets shouldn't 
cause compatibility problems with mail, unlike Message-ID.
Re:  Jeff Relf has set a bad example.
#248586
Author: Russ Allbery
Date: Tue, 14 Feb 2012 05:22
48 lines
4084 bytes
Demented Traveler <detravel@simic.net> writes:
> On 13/02/2012 11:57 PM, Russ Allbery wrote:

>> The reason why INN is even more conservative about Message-ID is
>> because Message-ID is one of the small handful of headers that's
>> critical for the netnews flood-fill algorithm to work properly and not
>> create pathological meltdown situations, such as endless article
>> duplication.  So INN is particularly picky about what message IDs it's
>> willing to deal with.

> It occurs to me that this, and similar, problems could always be solved
> by forcing every received message-ID into a specific format. (Ex: strip
> the high bit and change any control character to a ? character.) The key
> is for this transformation to be idempotent. Any article will end up
> with at most two copies this way (one with an initial, screwy message-ID
> and one with the normalized version) and only one on a server that does
> normalization.

This is a special case of the general idea that one can deal with
character set issues by normalizing before comparing.  Your proposed
normalization function has the definite advantage of being fast (although
no canonicalization is as fast as not having to do it), but has the
disadvantage that it will smash multiple distinct message IDs to the same
value.  Admittedly, it only does this with message IDs that are currently
invalid, so it's not a bad idea, but the failure mode with existing
servers that do octet comparisons is that a server using this algorithm
will pick one of multiple articles with message IDs mapping to the same
normalized form essentially at "random" and then reject all of the others.

That particular failure mode is one that historically we've gone to some
lengths to avoid, preferring to reject articles instead, because it can be
really confusing for users.  It looks rather similar to what happens if
you have multiple articles circulating that have the same message ID but
different contents.

Also, note that your proposed normalization function still doesn't deal
with Unicode properly.  Semantically identical message IDs could still end
up with different normalized forms.  The sequences e with an acute accent
(U+00E9) and e followed by combining accent acute (U+0065 U+0301) will map
to different normalized forms, but are semantically the same character
and, per the Unicode standard, are generally supposed to be treated as
equivalent.

-- 
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.
Re:  Jeff Relf has set a bad example.
#248585
Author: Demented Traveler
Date: Tue, 14 Feb 2012 05:28
38 lines
3668 bytes
On 14/02/2012 12:22 AM, Russ Allbery wrote:
> This is a special case of the general idea that one can deal with
> character set issues by normalizing before comparing.  Your proposed
> normalization function has the definite advantage of being fast (although
> no canonicalization is as fast as not having to do it), but has the
> disadvantage that it will smash multiple distinct message IDs to the same
> value.

Only ones that have a high bit set.

> Admittedly, it only does this with message IDs that are currently
> invalid, so it's not a bad idea, but the failure mode with existing
> servers that do octet comparisons is that a server using this algorithm
> will pick one of multiple articles with message IDs mapping to the same
> normalized form essentially at "random" and then reject all of the others.

If we had it all to do over again, we'd probably do well by designing 
the system to use the SHA-1 hash of the message body as the message-ID, 
encoded in some standard format, and follow up a hash collision with a 
byte-by-byte comparison of the full message to eliminate duplicates, 
using the message-ID just to speed up the duplicate test the majority of 
the time. Use of the hash as an actual message name would still mostly 
work (even accounting for the birthday paradox it would take many 
trillions of messages for a collision to become likely) and use of the 
hash + timestamp or hash + subject header would definitely work.

> Also, note that your proposed normalization function still doesn't deal
> with Unicode properly.  Semantically identical message IDs could still end
> up with different normalized forms.  The sequences e with an acute accent
> (U+00E9) and e followed by combining accent acute (U+0065 U+0301) will map
> to different normalized forms, but are semantically the same character
> and, per the Unicode standard, are generally supposed to be treated as
> equivalent.

However, the message would have been injected with only one or the other 
of those sequences. If a message had one form and another had the other 
form, producing different normalized IDs, then they were 
separately-injected messages and are *supposed* to have distinct IDs!
Re:  Jeff Relf has set a bad example.
#248589
Author: Russ Allbery
Date: Tue, 14 Feb 2012 05:47
70 lines
5535 bytes
Demented Traveler <detravel@simic.net> writes:
> On 14/02/2012 12:22 AM, Russ Allbery wrote:

>> Also, note that your proposed normalization function still doesn't deal
>> with Unicode properly.  Semantically identical message IDs could still
>> end up with different normalized forms.  The sequences e with an acute
>> accent (U+00E9) and e followed by combining accent acute (U+0065
>> U+0301) will map to different normalized forms, but are semantically
>> the same character and, per the Unicode standard, are generally
>> supposed to be treated as equivalent.

> However, the message would have been injected with only one or the other
> of those sequences. If a message had one form and another had the other
> form, producing different normalized IDs, then they were
> separately-injected messages and are *supposed* to have distinct IDs!

You're assuming that no one normalized the Unicode somewhere in the
network and that the only time the octet sequence associated with the
message ID was generated was when the article was injected.  This is a
good assumption to make with some use cases with current software that
understand Unicode at all, but it's not an assumption that you're
generally supposed to make with Unicode-aware software.

Consider, for example, the use case where a user re-enters a message ID to
try to find it (in a search by message ID interface in a news reader, for
example; many news readers have them and they can be quite useful).  In
that case, you're almost guaranteed to get different normalization forms,
since you get whatever the local input method produces, which is going to
be whatever is convenient for it.  So users search for a message ID and
can't find it even though, when looking at the message ID, it looks
exactly like what they typed.

Another example would be if a user cut and pastes a message ID into the
body of an article, to refer to another thread for example.  It's totally
fair game for the article editor to use whatever Unicode form is the most
convenient for it, since Unicode says that all those representations of
the character are equivalent, so it may decide to normalize the article
into decomposed form (for example) because it's handy for some internal
reason.  But now if you cut and paste that message ID, you don't find the
original article.

Another place where Unicode can shift between normalization forms is in
gatewaying scenarios, where articles may pass through Unicode-aware
software that isn't netnews-aware and hence isn't obsessive about
preserving the exact octet form of the message ID.

All this is why every IETF protocol that supports Unicode defines a
normalization protocol that must be used before comparing input.  See, for
example, IDNA (RFC 3490), which is the standard for using Unicode in
domain names.  It uses nameprep normalization, which in turn is a profile
of stringprep, which if you trace all the way through RFC 3491 and RFC
3454, you find requires using Unicode NFKC normalization (and then applies
a bunch of other rules and even bans a specific set of characters).  NFKC
is the normalization form that says that you decompose characters in a way
to collapse all compatibility characters and then combine all accent marks
you can in order to create combined characters where possible.  To do it
properly requires large tables of correct decomposition and normalization
forms for various characters (which you have to keep updating as new
versions of Unicode are released).

This stuff is hard.  People who haven't done serious work on character
sets (including myself prior to the USEFOR discussion when I had to go off
and study the issues) almost always drastically underestimate how complex
character set issues are.

-- 
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.
--
#248590
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 05:49
9 lines
1586 bytes

Binary ( non·INN ) servers allow high·bits in the Message·ID;
however, these servers are slow to find any Message·ID ── very slow.

INN ( including Google Groups ) could allow high·bits in the Message·ID,
I bet, without encountering problems.

Let me decide if the post is worth it or not, please.
Don't promote the "drop posts first, ask questions later" mentality.
--
#248591
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 06:03
6 lines
1412 bytes

If your peers search 7 years deep ( as some do ),
and you ·know· they reject high·bit message·IDs,
don't ask for them... because it'd take forever and a day.

Depending on the peer, don't ask for high·bit message·IDs.
Re:  Re: Better servers aren't netnannies, they let me decide what's what.
#248592
Author: Michael Moroney
Date: Tue, 14 Feb 2012 06:13
31 lines
2828 bytes
Jeff-Relf.Me <x@x.Invalid> writes:

> <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=> is not a valid encoded word.

Sez who?  You're making things up again.  Nothing in RFC 2047 about that.
Besides, if we go by your standards as what's out there, many news posters
create subjects in strict ASCII until they encounter non-ASCII chars,
then they switch into RFC-2047 encoding.

> <?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?> without the =? ?= brackets,
> is most definately not an encoded word.

You're correct, Jeff, it's not.  Did your br0ken newsreader fuck up and
change the Message-ID on you?

> Apparently, you're running something that strips out = symbols.

That would be X.EXE, Jeff.  Oh wait, you're the one running it, not I!

You should know that my unusual, but correctly formatted Message-ID:
<=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=> made it to Giggle Groups and aioe
correctly, but your X.EXE apparently fucked up.  I noticed it also fucked
up the References: line (not fixed in this post), you added extra "<" and
">" characters, making it not a valid Message-ID.

>  Be liberal in what you accept, and conservative in what you send.

> I'm a single person, not a server, I don't have to conform.

That's what I thought. Antisocial personality disorder, or similar.
The rules apply to everyone else except yourself!
Re:  Jeff Relf has set a bad example.
#248593
Author: Demented Traveler
Date: Tue, 14 Feb 2012 06:23
115 lines
8151 bytes
On 14/02/2012 12:47 AM, Russ Allbery wrote:
> Demented Traveler<detravel@simic.net>  writes:
>> However, the message would have been injected with only one or the other
>> of those sequences. If a message had one form and another had the other
>> form, producing different normalized IDs, then they were
>> separately-injected messages and are *supposed* to have distinct IDs!
>
> You're assuming that no one normalized the Unicode somewhere in the
> network and that the only time the octet sequence associated with the
> message ID was generated was when the article was injected.  This is a
> good assumption to make with some use cases with current software that
> understand Unicode at all, but it's not an assumption that you're
> generally supposed to make with Unicode-aware software.

It's what would happen if we took the current situation, where servers 
either treat message-IDs as octet strings and don't change or interpret 
them at all or else reject some and treat the rest as opaque strings, 
and then added servers that flatten them into ASCII and don't otherwise 
manipulate them.

> Consider, for example, the use case where a user re-enters a message ID to
> try to find it (in a search by message ID interface in a news reader, for
> example; many news readers have them and they can be quite useful).  In
> that case, you're almost guaranteed to get different normalization forms,
> since you get whatever the local input method produces, which is going to
> be whatever is convenient for it.  So users search for a message ID and
> can't find it even though, when looking at the message ID, it looks
> exactly like what they typed.

That's a UI/client-side issue rather than a network-meltdown-inducing 
issue, though. The problem we were trying to address was *solely* that 
servers might mangle the ID and spawn endlessly duplicating messages, or 
similar problems.

But considering user searches for message IDs, where are they getting it 
in the first place? Probably by copy and paste from someplace (perhaps 
Google Groups). It's likely the already-normalized message ID and if 
it's not it'll be the original as injected, which will normalize to the 
same value.

> Another example would be if a user cut and pastes a message ID into the
> body of an article, to refer to another thread for example.  It's totally
> fair game for the article editor to use whatever Unicode form is the most
> convenient for it, since Unicode says that all those representations of
> the character are equivalent, so it may decide to normalize the article
> into decomposed form (for example) because it's handy for some internal
> reason.  But now if you cut and paste that message ID, you don't find the
> original article.

That would be more of a problem. Perhaps there should be a normalization 
within Unicode. Again, though, it's a client-side issue that can't lead 
to a firehose of duplicate articles propagating among the servers.

> Another place where Unicode can shift between normalization forms is in
> gatewaying scenarios, where articles may pass through Unicode-aware
> software that isn't netnews-aware and hence isn't obsessive about
> preserving the exact octet form of the message ID.

That seems less likely. Articles circulating among usenet servers would 
get the normalization outlined and nothing else. On the other hand, 
gatewaying outside of Usenet tends to happen at the edges: to web sites, 
or to email. When the door swings both ways it doesn't tend to do it 
automatically: an article is sent to someone as email, and if they reply 
by email that gets posted, say, but no article is converted to email, 
then back to netnews, and continues propagating.

I expect, also, that even in the worst case (someplace has a full Usenet 
feed that takes articles, gateways them to something other than netnews, 
and sends them somewhere where they'll all be gatewayed back to Usenet, 
*and* instead of just copying them verbatim the whole way they do some 
kind of processing that changes Unicode characters among equivalent 
forms for some reason), there are finitely many equivalent Unicode 
strings for any given string. The maximum duplication may be larger than 
1 or 2 copies per server but remains finite, averting your feared 
meltdown scenario.

> All this is why every IETF protocol that supports Unicode defines a
> normalization protocol that must be used before comparing input.

And nothing stops this being done for netnews too. The only viable 
alternative may be to reject such message IDs outright and put up with 
Relf's whining. :)

> This stuff is hard.  People who haven't done serious work on character
> sets (including myself prior to the USEFOR discussion when I had to go off
> and study the issues) almost always drastically underestimate how complex
> character set issues are.

Blame the dumbass that decided to allow multiple equivalent ways to 
specify the same character in the first place. They should have probably 
not tried to be back-compatible with Latin-1 (just ASCII) and defined a 
character as an accent marker (0 for none, 1 for acute, 2 for grave, 3 
for umlaut, 4 for the little ~ thing on Ns in Spanish, 5 for the little 
curlicue on Cs in French, and so forth) followed by a character code 
(itself wider than 8 bits, so the ten thousand symbols of Chinese for 
example could be accomodated). For convenient word alignment and to 
ensure plenty of room for expansion, one byte for accent and three for 
main glyph would probably have sufficed; that gives you 16,777,216 
symbols (all the ideogrammic languages out there would still consume 
only a fraction of that, leaving plenty for when we encounter the 
Zurglebians and their million-character alphabet in 2147) and 256 
different accents and valid combinations of accents (there probably 
aren't many of the latter).

There'd only be one code for each symbol then, and 0 0 0 65 would still 
be unaccented capital A, so ASCII would still round-trip intact if you 
stripped the three high bytes. A standard compression scheme 
(patent-free LZSS?) could have been specified for making things more 
compact, and a standard way to convert to 7-bit forms (BinHex the 
compressed version?) could also have been specified. And a *single* such 
compression scheme and a *single* such conversion made canon.

But again, it's a bit late for that now, just as it is to make 
message-IDs fully machine-generated by the injecting server hashing 
message bodies.
Re: ? Jeff Relf has set a bad example.
#248595
Author: Demented Traveler
Date: Tue, 14 Feb 2012 06:36
52 lines
4821 bytes
On 14/02/2012 1:23 AM, Demented Traveler wrote:
> On 14/02/2012 12:47 AM, Russ Allbery wrote:
>> Another place where Unicode can shift between normalization forms is in
>> gatewaying scenarios, where articles may pass through Unicode-aware
>> software that isn't netnews-aware and hence isn't obsessive about
>> preserving the exact octet form of the message ID.
>
> That seems less likely. Articles circulating among usenet servers would
> get the normalization outlined and nothing else. On the other hand,
> gatewaying outside of Usenet tends to happen at the edges: to web sites,
> or to email. When the door swings both ways it doesn't tend to do it
> automatically: an article is sent to someone as email, and if they reply
> by email that gets posted, say, but no article is converted to email,
> then back to netnews, and continues propagating.

Actually, on further thought, the hypothetical gateway would tend to 
only see already-normalized-to-ASCII message-IDs. If it got a raw 
8-bit-dirty message-ID it would be through a chain of servers from the 
injecting one all the way to the gateway none of which applied my 
normalization idea -- which means the same thing would happen if the 
same article got injected *right now*. Rather than potentially *cause* 
the problem you outline above, my normalization proposal would reduce 
its likelihood in any given instance, since even one normalizing server 
on each path from injection site to gateway would prevent it.

On the flip side, your main objections mostly involve circumstances 
where message-IDs are exposed to users rather than staying under the 
hood. The original objection to allowing 8-bit message-IDs was that it 
was too complicated to be justified to prettify something that was only 
rarely exposed to users. This means that although the more such 
message-IDs are exposed the stronger (some of) your arguments against a 
quick and dirty normalization scheme grow, also the stronger the 
arguments against simply rejecting such message-IDs grow.

Regarding "full" normalization being complicated and requiring 
occasional updates: you mentioned that other protocols already require 
such normalization, and that one of those was DNS. Every usenet server 
must also use DNS, so if the normalization adopted for message IDs was 
the same one used with DNS you'd be guaranteed that every server 
*already* had the software code on it to do such normalization and 
*already* had to have the occasional updates. It would just be a matter 
of a) making the normalization scheme used for DNS be exposed as its own 
API (making it a Unix library that DNS software uses as a dependency 
instead of burying it inside the DNS software would suffice) and b) 
having NNTP server software use that API. This avoids duplication of 
effort and washes NNTP's hands of the whole update mess, as the need to 
keep DNS working is so severe that the normalization tables being used 
on all the servers will all be kept up to date already. The NNTP 
server's normalization will keep itself up to date by riding on the 
coattails of work that will be being done anyway on that net host, and 
which if it isn't done will cause all kinds of things to break on that 
net host anyway.
--
#248594
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 06:40
7 lines
1569 bytes

Posting U+0065 U+0301 ( looks like U+00E9 ) will likely never happen;
if it did happen, the guy who did it might lose, and I'm OK with that.
Besides, Message·IDs with high·bits would (almost) never happen.

I don't understand why or how speed might be an issue;
perhaps 7 year·deep, binary servers are too slow, I don't know.
Re:  Jeff Relf has set a bad example.
#248596
Author: Russ Allbery
Date: Tue, 14 Feb 2012 07:07
179 lines
11686 bytes
Demented Traveler <detravel@simic.net> writes:
> On 14/02/2012 12:47 AM, Russ Allbery wrote:

>> You're assuming that no one normalized the Unicode somewhere in the
>> network and that the only time the octet sequence associated with the
>> message ID was generated was when the article was injected.  This is a
>> good assumption to make with some use cases with current software that
>> understand Unicode at all, but it's not an assumption that you're
>> generally supposed to make with Unicode-aware software.

> It's what would happen if we took the current situation, where servers
> either treat message-IDs as octet strings and don't change or interpret
> them at all or else reject some and treat the rest as opaque strings,
> and then added servers that flatten them into ASCII and don't otherwise
> manipulate them.

Right.  My point is that that *isn't* the only thing that a message ID is
used for on Usenet, so the set of use cases that you're considering is a
bit artificially limited.  :)

If all you care about is server behavior, you can generally (not
completely, but generally) assume that what's currently happening is octet
comparison.  There are some completely bizarre cases in INN where this
isn't the case, but they're not particularly important, and are really
long-standing bugs.

Past experience says that you shouldn't be too optimistic that everyone is
going to implement the new normalization properly and in the same way, but
the number of problems that would result is probably relatively low if
you're considering only servers.  My guess is that most of your problems
are not going to be message ID uniqueness problems, but rather will be
with various strange failures, syntax errors, and other forms of lack of
cope from existing servers that don't like getting UTF-8 in NNTP commands.
This can be a significant problem, though; TAKETHIS and NNTP syntax errors
do not play well together, and we've had real implementation issues with
that in INN in the past.

>> Consider, for example, the use case where a user re-enters a message ID
>> to try to find it (in a search by message ID interface in a news
>> reader, for example; many news readers have them and they can be quite
>> useful).  In that case, you're almost guaranteed to get different
>> normalization forms, since you get whatever the local input method
>> produces, which is going to be whatever is convenient for it.  So users
>> search for a message ID and can't find it even though, when looking at
>> the message ID, it looks exactly like what they typed.

> That's a UI/client-side issue rather than a network-meltdown-inducing
> issue, though. The problem we were trying to address was *solely* that
> servers might mangle the ID and spawn endlessly duplicating messages, or
> similar problems.

Well, that may be the problem that *you're* trying to solve, but it's not
the problem that *I'm* trying to solve.  :)  I think a proper design for
allowing Unicode in places it's not currently allowed needs to look at all
the use cases.  The network meltdown problems of course come most
immediately to mind, but all the interoperability issues are interesting.

I also take some minor issue with the idea that this is just a client-side
issue, since the problem with not doing normalization is precisely that
the client *can't* do the right thing.  The client doesn't know what
normalization is used, so even if the client wants to do the right thing,
the client is helpless.  All it could do is try *every possible
variation*, which as you can imagine can be quite large, and which is not
an operation that the normally available Unicode handling libraries offer.

> But considering user searches for message IDs, where are they getting it
> in the first place? Probably by copy and paste from someplace (perhaps
> Google Groups). It's likely the already-normalized message ID and if
> it's not it'll be the original as injected, which will normalize to the
> same value.

You're assuming that copy and paste preserves the Unicode normalization
form.  Are you sure this is a valid assumption?  I don't see any reason to
assume that your OS copy/paste, with a Unicode-aware OS (and that's nearly
all of them these days), is going to do an octet-by-octet copy of the raw
octets.  Among other things, it's quite plausible that the OS or software
program will have changed normalization forms for display, to match what's
expected by the font in use for example, so what's displayed (and hence
copied) may not be the original form.

The invariant that you're relying on here is not actually invariant in
Unicode.  Most people are used to the simple case of ISO 8859 charsets,
but those have about a tenth the complexity of Unicode.

> That would be more of a problem. Perhaps there should be a normalization
> within Unicode.

There are a whole bunch of normalizations within Unicode, and each
protocol and application gets to pick which ones they want to use.  But
that doesn't happen automatically; the protocol has to say somewhere that
you have to normalize, and specify *when* you normalize.

> That seems less likely. Articles circulating among usenet servers would
> get the normalization outlined and nothing else. On the other hand,
> gatewaying outside of Usenet tends to happen at the edges: to web sites,
> or to email. When the door swings both ways it doesn't tend to do it
> automatically: an article is sent to someone as email, and if they reply
> by email that gets posted, say, but no article is converted to email,
> then back to netnews, and continues propagating.

You are, like most people who see gatewaying and think it's something
exotic and rare, neglecting newsgroup moderation.  :)  Which is by far the
most common gatewaying situation, and is bidirectional to boot.  And
frequently passes through the most stunning array of ad hoc scripts,
bizarre mail clients, and weird file handling that you have ever seen in
your life.  Moderators use an amazing variety of bailing wire and chewing
gum to run their groups.

> And nothing stops this being done for netnews too. The only viable
> alternative may be to reject such message IDs outright and put up with
> Relf's whining. :)

What gets me is that message IDs are just a dumb place to do this work.
They're much more critical than other parts of the message, and Unicode in
message IDs serves very little useful practical purpose.  If we're going
to go to the work of allowing Unicode, let's do newsgroup names!  They're
actually user-visible, they're actively buggy at the moment for our
non-English-speaking users who have words they want to use in newsgroup
names that don't collapse into ASCII, and the payoff is much more
satisfying.  And they pose many of the same issues.

Message IDs are the last thing I'd try to change.  Unlike every other
place one would look to add Unicode support, being ASCII-only isn't really
hurting message IDs in any appreciable way.

> Blame the dumbass that decided to allow multiple equivalent ways to
> specify the same character in the first place.

There are also a lot of politics involved in character sets.  I followed
Unicode development for a long time, and I can assure you that the people
who worked out the compromises and details of the current standard aren't
dumbasses.  They were operating under a bunch of constraints, though (and
there's some committee stupidity, as there is in any large cooperative
effort involving humans).

Making a standard that's easy to work with technically is important, but
making one that people would actually adopt and not ignore in favor of
continuing to use a blizzard of national character sets was also
important, and that's where a lot of the precombined characters come from.
(It would be simpler in a lot of ways, and elegant, if the only accent
marks were combining marks.)  And they were also trying to solve a bunch
of other difficult problems at the same time (such as Arabic script, which
simply requires reasonable support for combining characters).

> They should have probably not tried to be back-compatible with Latin-1
> (just ASCII) and defined a character as an accent marker (0 for none, 1
> for acute, 2 for grave, 3 for umlaut, 4 for the little ~ thing on Ns in
> Spanish, 5 for the little curlicue on Cs in French, and so forth)
> followed by a character code (itself wider than 8 bits, so the ten
> thousand symbols of Chinese for example could be accomodated). For
> convenient word alignment and to ensure plenty of room for expansion,
> one byte for accent and three for main glyph would probably have
> sufficed; that gives you 16,777,216 symbols (all the ideogrammic
> languages out there would still consume only a fraction of that, leaving
> plenty for when we encounter the Zurglebians and their million-character
> alphabet in 2147) and 256 different accents and valid combinations of
> accents (there probably aren't many of the latter).

You need more than 256 different combining characters, because they're not
just used for accent marks such as in the languages that you're probably
thinking of.  Take a look at Arabic; it's really rather interesting.  The
comment about not many valid combinations of accents also makes me think
that you've never seen written Vietnamese.  :)

> There'd only be one code for each symbol then, and 0 0 0 65 would still
> be unaccented capital A, so ASCII would still round-trip intact if you
> stripped the three high bytes.

UTF-32 is something akin to what you are describing, to mention, although
it doesn't divide up the character space in the way that you describe and
it of course still has combining marks.  But you can't use UTF-32 with any
legacy protocol because all those 0 bytes look like nul characters and
break everything written with C string handling.  Hence UTF-8.

-- 
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.
Re: ? Jeff Relf has set a bad example.
#248598
Author: Russ Allbery
Date: Tue, 14 Feb 2012 07:23
101 lines
7604 bytes
Demented Traveler <detravel@simic.net> writes:

> Actually, on further thought, the hypothetical gateway would tend to
> only see already-normalized-to-ASCII message-IDs.

I hope you're not talking about normalizing it *in the article that you
pass on*, instead of just normalizing it internally for comparison!  That
would open a whole different set of problems.  There are good reasons why
one of the cardinal rules of netnews software is that you never, ever
change the article once it's been injected; you pass it on the way that
you got it (with a few well-documented exceptions for trace headers), or
you reject it.

You don't want to break that invariant.  Down that path lies servers
adding advertisements to the bottom of every article that passes through
the server.  You really do not want servers being "helpful" and munging
the article and then propagating their mistakes and bugs and bad decisions
on to everyone else who's unlucky enough to be downstream of them.

> On the flip side, your main objections mostly involve circumstances
> where message-IDs are exposed to users rather than staying under the
> hood. The original objection to allowing 8-bit message-IDs was that it
> was too complicated to be justified to prettify something that was only
> rarely exposed to users. This means that although the more such
> message-IDs are exposed the stronger (some of) your arguments against a
> quick and dirty normalization scheme grow, also the stronger the
> arguments against simply rejecting such message-IDs grow.

I think you're misstating the argument against Unicode message IDs, or
maybe I was overly simplistic in presenting it.  It's not that one doesn't
prettify them because they're rarely exposed to users; it's that one
doesn't prettify them because users don't care about them except as opaque
strings.  Save the work for something where Unicode means the difference
between spelling words properly or butchering them, or between letting
someone use their real name or forcing them to use an English name.
Making system-generated unique keys pretty is just a waste of effort.

> Regarding "full" normalization being complicated and requiring
> occasional updates: you mentioned that other protocols already require
> such normalization, and that one of those was DNS. Every usenet server
> must also use DNS, so if the normalization adopted for message IDs was
> the same one used with DNS you'd be guaranteed that every server
> *already* had the software code on it to do such normalization and
> *already* had to have the occasional updates.

No, the people who did IDNA were much brighter than that.  :)  They
understood the serious compatibility issues with adding Unicode to DNS, so
they took a very aggressive encoding stance.  IDNA says that you convert
Unicode domain names to an encoded form basically as soon as you touch
them, and then everything you do with them uses the encoded form up until
the point at which you display them to a user.  Then you decode them
*only* at the very end, and only for display.  One of the huge advantages
of this approach is that only users who care about Unicode domain names,
and therefore have a reason to care to seek out updates, have to know
anything about the encoding; to everyone else who doesn't care about those
names, they just look like (kind of ugly) random domain names.

Every IDNA name that news server software runs into during normal
operation is already encoded and no news server software needs to know
anything about IDNA (except possibly if someone really wants to make
configuration files friendlier and allow admins to configure domain names
using the unencoded form, but so far as I know no one has yet bothered to
do that).  All that news servers see are DNS names that look like
xn--bcher-kva.ch.  So news servers don't generally have any specific IDNA
support.  That's the sort of rollout strategy that you *have* to have; you
have to assume that only a tiny fraction of the network will know anything
about your new encoding or normalization or whatnot, and that the vast
majority of the network will continue working the way it does now.

Readers may need to know this should they want to display domain names in,
say, email addresses "properly," but I don't know of any readers yet with
that support.  (Hm, maybe current development Gnus?)  But they would
convert to encoded form immediately upon entry of the email address, and
convert back only at the last possible moment for display.

But indeed this is one of the reasons why we were looking at Punycode (the
IDNA encoding format) for newsgroup names as a route to Unicode.  I still
think that's probably the best approach.

> It would just be a matter of a) making the normalization scheme used for
> DNS be exposed as its own API (making it a Unix library that DNS
> software uses as a dependency instead of burying it inside the DNS
> software would suffice) and b) having NNTP server software use that
> API. This avoids duplication of effort and washes NNTP's hands of the
> whole update mess, as the need to keep DNS working is so severe that the
> normalization tables being used on all the servers will all be kept up
> to date already. The NNTP server's normalization will keep itself up to
> date by riding on the coattails of work that will be being done anyway
> on that net host, and which if it isn't done will cause all kinds of
> things to break on that net host anyway.

Certainly if we wanted to pick an encoding format for newsgroup names or
for message IDs, we should use one that people are already using since
libraries are already available.  Rolling our own would be a particularly
bad choice.

-- 
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.
--
#248597
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 07:33
11 lines
1725 bytes
<PRE>
Google Groups has your post, Michael•Moroney, see:

  http://groups.google.com/group/news.software.readers/msg/40548ee899da8bf5

The =? ?= brackets were munged.
When using Quoted·Printable, use == for =.
Once again, you failed, and blamed me for it.

I decide what's what, what's spam or not; not my email/usenet server.
I'm not a server, I don't follow server rules, I don't decide for others.
--
#248599
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 08:10
17 lines
1900 bytes

Losing posts due to accents in Message·IDs doesn't bother me.
They lose, I'm happy with that; I'll post working UTF·8 msg·IDs.
I like the look. ☀╳☢⏃⦿♚♛♜♝♞♟ ( MS Mincho, fixed width, double wide )

Apps should convert UTF·8 msg·IDs in NNTP commands to UTF·16;
the apps can be fixed, or they could live with the errors.

UTF·8 msg·IDs are a better place to begin, compared to newsgroup names,
because they're less likely to be used.
I'd use it, and (almost) no one else.

If it slows things down, peer to peer,
I'd like to know why, exactly.

Moderators would ban what they can't handle.
I'm fine with that, I don't post to moderated newsgroups.
Re:  Jeff Relf has set a bad example.
#248601
Author: Demented Traveler
Date: Tue, 14 Feb 2012 08:13
232 lines
13786 bytes
On 14/02/2012 2:07 AM, Russ Allbery wrote:
> Demented Traveler<detravel@simic.net>  writes:
>> But considering user searches for message IDs, where are they getting it
>> in the first place? Probably by copy and paste from someplace (perhaps
>> Google Groups). It's likely the already-normalized message ID and if
>> it's not it'll be the original as injected, which will normalize to the
>> same value.
>
> You're assuming that copy and paste preserves the Unicode normalization
> form.  Are you sure this is a valid assumption?

Copy and paste, properly implemented, should just be a bit-exact copy 
operation.

> I don't see any reason to assume that your OS copy/paste, with a
> Unicode-aware OS (and that's nearly all of them these days), is going to
> do an octet-by-octet copy of the raw octets.  Among other things, it's
> quite plausible that the OS or software program will have changed
> normalization forms for display, to match what's expected by the font in
> use for example, so what's displayed (and hence copied) may not be the
> original form.

That would be very broken behavior. If I select a block of text and hit 
copy, I expect what's copied to be *the text as it exists in the 
document*, not something that's been massaged for display. Copy is 
supposed to act on the underlying document text, not on what happens to 
be on the screen. I certainly don't expect that if I select some text 
that is partly overlapped by the mouse pointer that a chunk of mouse 
pointer will get copied with it. :) Nor should anything else that has to 
do with the text's display, rather than the document content itself, 
influence it. If I set a Notepad to a 24-point font size and copy from 
it and paste into a Notepad set to 12-point, I expect 12-point text 
coming out, not 24-point. (If it's word processor text that has 
attributes and formatting, pasted to another word processor, then that's 
another matter. The point size is then a feature of the text as it 
exists in the application's document model, rather than a display 
setting that is separate from the document model. So it should be part 
of what's copied.)

In MVC terminology, copy and paste should act on the model, not on the 
view, and copy in particular should get its data from the model, not the 
view.

> You are, like most people who see gatewaying and think it's something
> exotic and rare, neglecting newsgroup moderation.  :)

I didn't say it was "exotic and rare"; I said it occurs mainly at the 
edges, and mainly is not two-way-automated (i.e. an article gets 
injected and when it propagates to host X, it gets gatewayed to medium 
Y, say email, sent to host Z, and then gatewayed back to usenet without 
any human intervention). In particular, newsgroup moderation makes a 
round trip through email but with a manual click on an "approve" button 
by a moderator along the way.

> frequently passes through the most stunning array of ad hoc scripts,
> bizarre mail clients, and weird file handling that you have ever seen in
> your life.  Moderators use an amazing variety of bailing wire and chewing
> gum to run their groups.

Perhaps they shouldn't. I'd guess they're sticking to what they're used 
to rather than upgrading to more modern stuff that doesn't need to be 
jerry-rigged. The main complication I can foresee is if they've built an 
elaborate antispam filter along the way to autoreject the most obvious 
and commonplace junk. Even if they discarded that it wouldn't take them 
long to train a modern Bayesian spam filter on that, and if they used 
some mail services (notably including gmail) they could even take 
advantage of a pre-existing Bayesian filter that's kept up to date by a 
whole raft of mail users.

>> And nothing stops this being done for netnews too. The only viable
>> alternative may be to reject such message IDs outright and put up with
>> Relf's whining. :)
>
> What gets me is that message IDs are just a dumb place to do this work.
> They're much more critical than other parts of the message, and Unicode in
> message IDs serves very little useful practical purpose.

That's back to the not-user-exposed argument. Again, the less 
user-exposed message-IDs are, the less justification there is for 
anything more complicated than dropping problematic message-IDs, but 
also the less potential client-interaction issues (such as users pasting 
them into a search) matter.

And do keep in mind that it would be mainly flattened-to-ASCII 
message-IDs that these users would be copying and pasting and that would 
be entering those ad-hoc, ancient, jerry-rigged moderation systems. 
Moderators could, in particular, just tack an initial step onto their 
scripts that flattened the message-ID.

Whereas, making INN reject all non-ASCII message-IDs has *no effect 
whatsoever* on your moderation worries, since the article with the wonky 
message-ID will go directly to the moderator's possibly-broken scripts 
without ever passing through INN. It will cause all the trouble it could 
cause there *before* potentially being injected to or passing through an 
INN server that could prevent it using *either* normalization *or* 
blocking! Every moderator that might see an incoming message with a 
non-ASCII message-ID already has to do something (and each separately 
from the other, it seems, as well as separately from news servers) about 
it, such as auto-reject or normalize in some manner.

> If we're going to go to the work of allowing Unicode, let's do
> newsgroup names!  They're actually user-visible, they're actively
> buggy at the moment for our non-English-speaking users who have words
> they want to use in newsgroup names that don't collapse into ASCII,
> and the payoff is much more satisfying.  And they pose many of the
> same issues.

No objection there.

> Message IDs are the last thing I'd try to change.  Unlike every other
> place one would look to add Unicode support, being ASCII-only isn't really
> hurting message IDs in any appreciable way.

I was, actually, mostly playing the devil's advocate. I'm all for 
blocking Relf's malformed-by-current-standards posts at the source. :)

>> Blame the dumbass that decided to allow multiple equivalent ways to
>> specify the same character in the first place.
>
> There are also a lot of politics involved in character sets.

"Politics" is a synonym for "dumbassery", so my point stands. ;)

> I followed Unicode development for a long time, and I can assure you that
> the people who worked out the compromises and details of the current
> standard aren't dumbasses.

That's the funny thing about design-by-committee: you can get dumbassery 
out even if none of the committee members, taken alone, is a dumbass. 
And you usually do. ;)

> They were operating under a bunch of constraints, though

Of which the worst two were, no doubt, trying to be back-compatible with 
ISO 8859-1 and maybe other extended charsets and not just ASCII, plus 
space constraints (so just giving every combination of base glyph + 
accent might quickly run out of room). Without the latter, just having 
every distinct glyph have its own code would be simple and work, and 
without the former having accents specified by a separate code would work.

> (and there's some committee stupidity, as there is in any large cooperative
> effort involving humans).

This is why a project with a clearly-in-charge BD (like Linus Torvalds 
and the Linux kernel, Rich Hickey and Clojure, etc.) is generally 
superior to either a free-for-all or DBC.

> (It would be simpler in a lot of ways, and elegant, if the only accent
> marks were combining marks.)

I believe I already said that. Having the whole "combining marks" 
complication missing also would have been, but I guess they were worried 
about the charset growing too big.

> And they were also trying to solve a bunch
> of other difficult problems at the same time (such as Arabic script, which
> simply requires reasonable support for combining characters).

One clever solution if you had the codespace for a huge charset would 
have been to structure the Arabic section in such a manner that you 
could treat the code point as an X-bit record with fields and read off 
the combining characters that way. That would give the desirable 
property "each distinct glyph has exactly one code" and still allow 
shortcuts in fonts and display code based on decomposing points in that 
part of the codespace into those fields and using the separate field 
values to find and combine the appropriate graphic pieces to assemble 
the displayed glyph.

If we had it to do over again ...

But we don't.

> You need more than 256 different combining characters, because they're not
> just used for accent marks such as in the languages that you're probably
> thinking of.  Take a look at Arabic; it's really rather interesting.  The
> comment about not many valid combinations of accents also makes me think
> that you've never seen written Vietnamese.  :)

My focus was on European languages, yes. But I also said "accents" 
specifically, and not other decomposable glyphs. Korean has a 
consonant-vowel pair encoded by combining two symbols within one 
character's worth of space, as I recall. Something like that might be 
best represented with a single character for each component, and smart 
display software that knows to combine a Korean consonant symbol and 
following Korean vowel symbol into a single glyph according to whatever 
rules.

Note the general pattern: if I'd designed this, I'd have made a clear 
distinction between bit-pattern representation and display 
representation and expected fairly smart font rendering engines to do 
the job. The combining character mechanism seems to do this anyway. But 
the lack of a single canonical representation for a particular 
combination is a problem. One I think was avoidable, back when this was 
still being designed.

Another compromise they could have used. The main charsets they wanted 
to stay back-compatible with were the European accented ones, which have 
just a smattering of specific accented glyphs rather than an explosion 
of combination characters. So, they could have had all European 
character codes been integrated (no combining characters) but used 
combining characters (with no equivalent integrated-version characters) 
in other language spaces, including Arabic, Korean, and Vietnamese.

Why they decided to throw in European-accent combining characters as 
well is anybody's guess. Maybe someone thought it was less elegant to 
lack them but use combining characters for similar features in other 
languages. I would think it's less elegant still to have multiple 
equivalent representations of single strings, and encourage things other 
than bit-exact copying when moving data around as well as more 
complicated than "are they bit-identical?" case-sensitive equality 
tests. (Case-insensitive would always have been a bugabear, but is 
unimportant for things like newsgroup names and message-IDs.)

> UTF-32 is something akin to what you are describing, to mention, although
> it doesn't divide up the character space in the way that you describe and
> it of course still has combining marks.

Yes, I know.

> But you can't use UTF-32 with any
> legacy protocol because all those 0 bytes look like nul characters and
> break everything written with C string handling.  Hence UTF-8.

We'd probably have still had something like UTF-8. But UTF-8 would have 
kept the "one representation, one string" correspondence with a "smarter 
UTF-32" backing it. (Well, there's the UTF-8 and the UTF-32 
bit-patterns, but if you assume the input is always UTF-8 there's only 
one representation. Or you can just unpack to UTF-32 in-memory before 
any comparisons and if UTF-32 has the single-representation property 
then that also works on the non-legacy systems. If the legacy systems 
have to compare, then equal UTF-32 byte sequences must also produce 
equal UTF-8 byte sequences.)
Re: Julien ÉLIE, Steve Crook and Russ Allbery have set a bad example.
#248600
Author: Steve Crook
Date: Tue, 14 Feb 2012 09:23
20 lines
2428 bytes
On Mon, 13 Feb 2012 17:53:59 -0800 (Seattle), Jeff-Relf.Me wrote in
Message-Id: <Jeff-Relf.Me@2012_Feb.13^5.53.pm>:

> Julien•ÉLIE, Steve•Crook and Russ•Allbery are leading the way here.
> In dropping "Text/HTML" (from peers), Ray Banana took it up a notch.
What's that got to do with UTF-8 Message-ID's?

> The « Content-Type: Text/HTML; charset=UTF-8 » line in the header
> of a post applies to the header... that's how it actually works in
> Google Groups, Thunderbird, Outlook, Windows Live Mail, etc.
> Forte Agent can't display anything beyond its Western European font.
> Even the mighty slrn can't display double·wide fixed·with glyphs
> as found in the peerless "MS Mincho" font ( e.g. ♚♛♜♝♞♟ ).
>  
> When it comes to HTML, Forte Agent knows almost nothing;
> because it's not a mainstream email client.
All the above demonstrates to me that whacky things like UTF-8
Message-IDs and HTML content produces unexpected results across the
spectrum of readers. And your list only describes the behaviour of a
very small subset of things that might be reading Usenet.
Re: ? Jeff Relf has set a bad example.
#248603
Author: Demented Traveler
Date: Tue, 14 Feb 2012 13:23
77 lines
5327 bytes
On 14/02/2012 2:23 AM, Russ Allbery wrote:
> You don't want to break that invariant.  Down that path lies servers
> adding advertisements to the bottom of every article that passes through
> the server.

That's a classic example of the slippery slope fallacy.

> You really do not want servers being "helpful" and munging
> the article and then propagating their mistakes and bugs and bad decisions
> on to everyone else who's unlucky enough to be downstream of them.

So is that.

> I think you're misstating the argument against Unicode message IDs,

I most certainly am not. I'm repeating almost verbatim what I read 
earlier in the thread. If someone misstated anything, then, it was not me.

> users don't care about them except as opaque strings.

Apparently, at least one or two users do. :)

> Making system-generated unique keys pretty is just a waste of effort.

But they're not. Apparently, some people even personalize theirs. If 
they had been generated by the injecting server using some kind of hash 
function from the outset, of course, then things would have been different.

> No, the people who did IDNA were much brighter than that.  :)  They
> understood the serious compatibility issues with adding Unicode to DNS, so
> they took a very aggressive encoding stance.  IDNA says that you convert
> Unicode domain names to an encoded form basically as soon as you touch
> them, and then everything you do with them uses the encoded form up until
> the point at which you display them to a user.  Then you decode them
> *only* at the very end, and only for display.

This is similar to what I was suggesting for the message-IDs: in 
particular, that transformations for the purpose of display shouldn't 
impact the under-the-hood representation passed from server to server.

> One of the huge advantages
> of this approach is that only users who care about Unicode domain names,
> and therefore have a reason to care to seek out updates, have to know
> anything about the encoding; to everyone else who doesn't care about those
> names, they just look like (kind of ugly) random domain names.

Seems like a perfect approach for message-IDs, and, for that matter, 
newsgroup names as well.

Well, clients need a well-defined path for round-tripping through copy 
and paste. If the user copies an IDNA-like-transformed display value and 
pastes it elsewhere it should undergo the inverse mapping. (Multiple 
representations shouldn't be a problem if the IDNAified version has a 
single representation for each semantically-different string; the one 
generated for display can be arbitrary, and the whole equivalence class 
can collapse back into the one IDNAified representation on paste.)

Of course, that assumes a broken-ish copy and paste that doesn't copy 
the under-the-hood value. That might be justified though so that if it's 
copied from the newsreader and then pasted into a text editor or 
whatever it comes out non-uglified and human-readable. Given the above 
round-tripping properties.

> But indeed this is one of the reasons why we were looking at Punycode (the
> IDNA encoding format) for newsgroup names as a route to Unicode.  I still
> think that's probably the best approach.

Agreed.

> Certainly if we wanted to pick an encoding format for newsgroup names or
> for message IDs, we should use one that people are already using since
> libraries are already available.  Rolling our own would be a particularly
> bad choice.

Hence why I suggested leveraging existing code for 
encoding/normalization, and pointed out one instance of such code that 
should already exist on every plausible target configuration.
Re: I like the look. ☀╳☢⏃⦿♚♛♜♝♞♟ ( MS Mincho, fixed width, double wide ) 
#248602
Author: Demented Traveler
Date: Tue, 14 Feb 2012 13:30
8 lines
1815 bytes
On 14/02/2012 3:10 AM, Jeff-Relf.Me wrote:
>
> Losing posts due to accents in Message·IDs doesn't bother me.
> They lose, I'm happy with that; I'll post working UTF·8 msg·IDs.
> I like the look. ☀╳☢⏃⦿♚♛♜♝♞♟ ( MS Mincho, fixed width, double wide )

☢ is right, if we're to believe the various news admins' claims here 
about the effects your message-IDs are having on the network.
Re: I like the look. ??????????? ( MS Mincho, fixed width, double wide ) ??
#248605
Author: G. Morgan
Date: Tue, 14 Feb 2012 13:47
17 lines
2576 bytes
Demented Traveler wrote: 

>On 14/02/2012 3:10 AM, Jeff-Relf.Me wrote:
>>
>> Losing posts due to accents in Message·IDs doesn't bother me.
>> They lose, I'm happy with that; I'll post working UTF·8 msg·IDs.
>> I like the look. ??????????? ( MS Mincho, fixed width, double wide )
>
>? is right, if we're to believe the various news admins' claims here 
>about the effects your message-IDs are having on the network.

I'm not seeing his posts from E-S, and he's not  filtered.

All I see is lots of question marks.

Get it together Jeff R.  use 7-bit please.
Re: ? Jeff Relf has set a bad example.
#248604
Author: Julien ÉLIE
Date: Tue, 14 Feb 2012 13:58
23 lines
2363 bytes
Hi Demented Traveler,

> use the SHA-1 hash of the message body as the message-ID
[...]
> and use of the
> hash + timestamp or hash + subject header would definitely work.

Beware of the message whose subject and body is "test" :-)
Or multiposting at the same second to different newsgroups (instead of 
crossposting).

Besides, two different users can post a "test" message at different 
times, but using the same timestamp because the two servers do not have 
the right date!


My two cents ;-)

-- 
Julien ÉLIE

« Don't marry for money; you can borrow it cheaper. » (proverbe
   écossais)
Re: ? Jeff Relf has set a bad example.
#248606
Author: Demented Traveler
Date: Tue, 14 Feb 2012 14:00
21 lines
2331 bytes
On 14/02/2012 8:58 AM, Julien ÉLIE wrote:
> Hi Demented Traveler,
>
>> use the SHA-1 hash of the message body as the message-ID
> [...]
>> and use of the
>> hash + timestamp or hash + subject header would definitely work.
>
> Beware of the message whose subject and body is "test" :-)

Datestamp then.

> Or multiposting at the same second to different newsgroups (instead of
> crossposting).

Because all but one of a multipost being dropped would be *such* a tragedy.

But if it really matters to you, the hash can be for the entire thing 
injected, including the proto-headers. Since that often includes a 
message-ID and always includes the subject, that would get rid of most 
collisions. The hash can be salted with UTC time for extra bonus points.
Re: ? Jeff Relf has set a bad example.
#248612
Author: Shmuel Metz
Date: Tue, 14 Feb 2012 15:43
18 lines
2636 bytes
In <jhcvds$65k$1@speranza.aioe.org>, on 02/14/2012
   at 01:36 AM, Demented Traveler <detravel@simic.net> said:

>Regarding "full" normalization being complicated and requiring 
>occasional updates: 

I would expect any internationized update of Usenet to be based on RFC
5198, Unicode Format for Network Interchange, and RFC 5335,
Internationalized Email Headers.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re:  Jeff Relf has set a bad example.
#248616
Author: Shmuel Metz
Date: Tue, 14 Feb 2012 16:00
16 lines
2612 bytes
In <87zkcllwpq.fsf@windlord.stanford.edu>, on 02/13/2012
   at 11:07 PM, Russ Allbery <rra@stanford.edu> said:

>existing servers that don't like getting UTF-8 in NNTP commands.

Wouldn't they give a 501? I'd expect a new capability, comparable to
the UTF8SMTP Extension in RFC 5336, for non-ASCII message ids.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re:  Jeff Relf has set a bad example.
#248617
Author: Shmuel Metz
Date: Tue, 14 Feb 2012 16:10
22 lines
3219 bytes
In <jhd53e$hv8$1@speranza.aioe.org>, on 02/14/2012
   at 03:13 AM, Demented Traveler <detravel@simic.net> said:

>(so just giving every combination of base glyph + 
>accent might quickly run out of room).

Especially if multiple composing characters can be concurrently
applied to the same base character, e.e., vowel and trop in Hebrew.

>Without the latter, just having every distinct glyph have its own 
>code would be simple and work,

Only for languages in which the decorations are mutually exclusive.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re: Julien ÉLIE, Steve Crook and Russ Allbery have set a bad example.
#248618
Author: Shmuel Metz
Date: Tue, 14 Feb 2012 16:18
20 lines
2860 bytes
In <slrnjjk9vl.i0u.steve@news.mixmin.net>, on 02/14/2012
   at 09:23 AM, Steve Crook <steve@mixmin.net> said:

>All the above demonstrates to me that whacky things like UTF-8
>Message-IDs and HTML content produces unexpected results across the
>spectrum of readers.

No, It also demonstrates that he believes that RFC 2045, RFC 2047 and
RFC 5322 are irrelevant. "The « Content-Type: Text/HTML; charset=UTF-8
» line in the header of a post applies to the header" is totally
wrong.

-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re:  Jeff Relf has set a bad example.
#248620
Author: Adam H. Kerman
Date: Tue, 14 Feb 2012 16:28
33 lines
3107 bytes
Demented Traveler <detravel@simic.net> wrote:
>On 14/02/2012 2:07 AM, Russ Allbery wrote:
>>Demented Traveler<detravel@simic.net>  writes:

>>>But considering user searches for message IDs, where are they getting it
>>>in the first place? Probably by copy and paste from someplace (perhaps
>>>Google Groups). It's likely the already-normalized message ID and if
>>>it's not it'll be the original as injected, which will normalize to the
>>>same value.

>>You're assuming that copy and paste preserves the Unicode normalization
>>form.  Are you sure this is a valid assumption?

>Copy and paste, properly implemented, should just be a bit-exact copy 
>operation.

Here's a straightforward example, seamus, of why that's not necessarily so:

A user sees text on a Web page, say a URL that's not a hyperlink, capable of
being displayed as plain old ASCII if it were a plain text document. Certain
characters allowed or required to be in URLs must be encoded on Web pages.
It's not going to be obvious to the user that the glyph displayed of
such characters isn't using the character's code, but is further encoded.

Unless he is copying-n-pasting into a Web page that he himself is creating,
he wants to use the glyph, not the encoded value, so he wants to use the
glyph's 7-bit ASCII character code. In some copy-n-paste operations,
the 7-bit ASCII code will indeed be substituted for the encoded representation
of the glyph used on the Web page.

Things are ever more complicated if it's an 8-bit character since copy-n-paste
operations have no way of telling the document being pasted into what
character set was in use in the originating document.
--
#248619
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 18:00
9 lines
1603 bytes

You ( Demented•Traveler ) told me ( Jeff Relf ):
« ☢ is right, if we're to believe the various news admins' claims here 
  about the effects your message-IDs are having on the network. »

If the "From:" line doesn't contain "Jeff-Relf.Me", it's not from me.

Gregory Hall, as I recall, said he was intentionally
disrupting certain servers... that's not me.
--
#248622
Author: Michael Moroney
Date: Tue, 14 Feb 2012 18:37
14 lines
1749 bytes
Jeff-Relf.Me writes:

>Once again, you failed, and blamed me for it.

It's my fault that you fucked up the References: line?

Message-ID: <Jeff-Relf.Me@2012_Feb.13^9.08.pm>
References: <jhb1r2$fqd$1@news.trigofacile.com>
  <Jeff-Relf.Me@2012_Feb.13^11.35.am>
  <jhbr4j$ddu$1@news.trigofacile.com>
  <jhcb00$sks$1@pcls6.std.com>
  <Jeff-Relf.Me@2012_Feb.13^5.53.pm>
  <<=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>>
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248621
Author: Sn!pe
Date: Tue, 14 Feb 2012 20:29
26 lines
2906 bytes
Michael Moroney <moroney@world.std.spaamtrap.com> wrote:

> Jeff-Relf.Me writes:
> 
> >Once again, you failed, and blamed me for it.
> 
> It's my fault that you fucked up the References: line?
> 
> Message-ID: <Jeff-Relf.Me@2012_Feb.13^9.08.pm>
> References: <jhb1r2$fqd$1@news.trigofacile.com>
>   <Jeff-Relf.Me@2012_Feb.13^11.35.am>
>   <jhbr4j$ddu$1@news.trigofacile.com>
>   <jhcb00$sks$1@pcls6.std.com>
>   <Jeff-Relf.Me@2012_Feb.13^5.53.pm>
>   <<=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>>

I'm not sure that I understand this properly: 

Apart from Relf's fun and games with the Message-ID:, 
is the References: problem just that it breaks threading 
or is it more serious than that? 

-- 
^Ï^.       Sn!pe       <snipe@notforspam.fsnet.co.uk>

My pet rock Gordon just is.
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248624
Author: Michael Moroney
Date: Tue, 14 Feb 2012 21:45
32 lines
2432 bytes
snipe@spambin.fsnet.co.uk (Sn!pe) writes:

>Michael Moroney <moroney@world.std.spaamtrap.com> wrote:

>> Jeff-Relf.Me writes:
>> 
>> >Once again, you failed, and blamed me for it.
>> 
>> It's my fault that you fucked up the References: line?
>> 
>> Message-ID: <Jeff-Relf.Me@2012_Feb.13^9.08.pm>
>> References: <jhb1r2$fqd$1@news.trigofacile.com>
>>   <Jeff-Relf.Me@2012_Feb.13^11.35.am>
>>   <jhbr4j$ddu$1@news.trigofacile.com>
>>   <jhcb00$sks$1@pcls6.std.com>
>>   <Jeff-Relf.Me@2012_Feb.13^5.53.pm>
>>   <<=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>>

>I'm not sure that I understand this properly: 

>Apart from Relf's fun and games with the Message-ID:, 
>is the References: problem just that it breaks threading 
>or is it more serious than that? 

I posted a message with Message-ID: <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>.

Relf's busted newsreader couldn't handle it for some reason and
added a "<" at the beginning and a ">" at the end.  See the last
line of the References: line.

Not only is this the wrong Message-ID, but it is an invalid one.
A Message-ID can have only one ">" character, the very last one.
--
#248628
Author: Jeff-Relf.Me
Date: Tue, 14 Feb 2012 22:11
24 lines
2009 bytes

You ( Michael•Moroney ) borked the Quoted Printable, as always.

My "References:" line ( in the post you replied to* ) is correct:
[ *: news:Jeff-Relf.Me@2012_Feb.13^11.33.pm ]

  <jhbr4j$ddu$1@news.trigofacile.com>
  <jhcb00$sks$1@pcls6.std.com>
  <Jeff-Relf.Me@2012_Feb.13^5.53.pm>
  <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>
  <Jeff-Relf.Me@2012_Feb.13^9.08.pm>
  <jhcu2h$8qk$1@pcls6.std.com>

Also, the "References:" line in your latest post,
the one I'm replying to now, is mostly* correct:
[ *: the line is too long, it should be "folded", like mine is ]

  <jhbr4j$ddu$1@news.trigofacile.com>
  <jhcb00$sks$1@pcls6.std.com>
  <Jeff-Relf.Me@2012_Feb.13^5.53.pm>
  <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>
  <Jeff-Relf.Me@2012_Feb.13^9.08.pm>
  <jhcu2h$8qk$1@pcls6.std.com>
  <Jeff-Relf.Me@2012_Feb.13^11.33.pm>
Re:  Jeff Relf has set a bad example.
#248629
Author: tlvp
Date: Tue, 14 Feb 2012 22:16
17 lines
2550 bytes
On Tue, 14 Feb 2012 03:13:32 -0500, Demented Traveler wrote:

>  If I select a block of text and hit 
> copy, I expect what's copied to be *the text as it exists in the 
> document*, not something that's been massaged for display.

Really? Highlight and copy some italicized text material in two adjacent 
cells in a table on a web page as displayed in a browser, paste from that 
into a previously blank text document, and you honestly expect to find the 
TD I /I /TD TD I /I /TD fragment of the underlying HTML document that gives 
rise to that material? That, after all, is "the text as it exists in the 
document", while what you highlighted and copied was just "something that's 
been massaged for display."

Cheers, -- tlvp
-- 
Avant de repondre, jeter la poubelle, SVP.
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248630
Author: Sn!pe
Date: Tue, 14 Feb 2012 22:42
25 lines
3020 bytes
Michael Moroney <moroney@world.std.spaamtrap.com> wrote:

[...]

> >Apart from Relf's fun and games with the Message-ID:, 
> >is the References: problem just that it breaks threading 
> >or is it more serious than that? 
> 
> I posted a message with Message-ID: <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>.
> 
> Relf's busted newsreader couldn't handle it for some reason and
> added a "<" at the beginning and a ">" at the end.  See the last
> line of the References: line.
> 
> Not only is this the wrong Message-ID, but it is an invalid one.
> A Message-ID can have only one ">" character, the very last one.

Thanks for that, Michael. At first I thought it was a consequence 
of Relf's malformed Message-ID:s appearing in the References: 
rather than just a shortcoming of his own idiosyncratic newsreader.

-- 
^Ï^.       Sn!pe       <snipe@notforspam.fsnet.co.uk>

My pet rock Gordon just is.
--
#248632
Author: alon78
Date: Tue, 14 Feb 2012 23:06
22 lines
2268 bytes
tlvp <mPiOsUcB.EtLlLvEp@att.net>, wrote:

>On Tue, 14 Feb 2012 03:13:32 -0500, Demented Traveler wrote:
>
>>  If I select a block of text and hit 
>> copy, I expect what's copied to be *the text as it exists in the 
>> document*, not something that's been massaged for display.
>
>Really?

Yes "Really".
Wait for the "unsubstantiated and erroneous claim" flood.
The thread has been Seamused, the prat should be granted a HLS - hook line
sinker gong for the effort in Copy&Paste!

see------Newsgroups: alt.usenet.kooks,alt.free.newsservers,rec.arts.tv
	Subject: kOOk-out (from) Re: noticing traffic shaping
	Followup-To: alt.usenet.kooks
	Date: Mon, 13 Feb 2012 07:00:51 -0500
	Message-ID: <4f38fb74$0$6500$c3e8da3$efbdef2c@news.astraweb.com>

for more.
--
#248631
Author: Jeff-Relf.Me
Date: Wed, 15 Feb 2012 00:19
13 lines
1712 bytes

I'd like a fancy glyph or two in my bog·standard Message·ID;
i.e. symbols, not diacritics, not complex ligatures.

I don't care if diacritics break a Message·ID or not,
some broken UTF·8 MIDs ( from others, not me )
is a better scenario than no UTF·8 at all.

I don't like Punycode ( or UTF·7 ), I want straight UTF·8,
NNTP commands are UTF·8 already, so it's a good match.

Besides myself, I expect almost no one else to use it.
For testing, that's a good thing, less mess to deal with. 
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248635
Author: Ted S.
Date: Wed, 15 Feb 2012 02:09
16 lines
2278 bytes
On Tue, 14 Feb 2012 21:45:52 +0000 (UTC), Michael Moroney wrote:

> I posted a message with Message-ID: <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>.

I haven't been following this thread closely, but I presume that's a
valid M-ID?

Frankly, I'd like a way for Hamster to kill any message with that
Unicode character Relf includes in the Subject: header, since when other
people quote him that character slows down Dialog as Dialog searches for
the proper font to display the message in the Headerlist pane.

-- 
Ted S.
fedya at hughes dot net
Now blogging at http://justacineast.blogspot.com
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248634
Author: Junior
Date: Wed, 15 Feb 2012 03:18
18 lines
2203 bytes
Ted S. wrote:
> On Tue, 14 Feb 2012 21:45:52 +0000 (UTC), Michael Moroney wrote:
>
>> I posted a message with Message-ID: <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>.
>
> I haven't been following this thread closely, but I presume that's a
> valid M-ID?
>
> Frankly, I'd like a way for Hamster to kill any message with that
> Unicode character Relf includes in the Subject: header, since when other
> people quote him that character slows down Dialog as Dialog searches for
> the proper font to display the message in the Headerlist pane.

There is no proper font to display the Relf-BOM.

About Hamster; is there some kind of a plugin for the Mozilla
browers that turns Hamster into a newsreader? I've seen User-Agent
headers that start with Mozilla and include Hamster near the end.
Re: ? Jeff Relf has set a bad example.
#248639
Author: Demented Traveler
Date: Wed, 15 Feb 2012 05:18
81 lines
5495 bytes
On 14/02/2012 11:28 AM, Adam H. Kerman wrote:
> Demented Traveler<detravel@simic.net>  wrote:
>> On 14/02/2012 2:07 AM, Russ Allbery wrote:
>>> Demented Traveler<detravel@simic.net>   writes:
>
>>>> But considering user searches for message IDs, where are they getting it
>>>> in the first place? Probably by copy and paste from someplace (perhaps
>>>> Google Groups). It's likely the already-normalized message ID and if
>>>> it's not it'll be the original as injected, which will normalize to the
>>>> same value.
>
>>> You're assuming that copy and paste preserves the Unicode normalization
>>> form.  Are you sure this is a valid assumption?
>
>> Copy and paste, properly implemented, should just be a bit-exact copy
>> operation.
>
> Here's a straightforward example, seamus, of why that's not necessarily so:

Who's this "seamus"?

> A user sees text on a Web page, say a URL that's not a hyperlink, capable of
> being displayed as plain old ASCII if it were a plain text document. Certain
> characters allowed or required to be in URLs must be encoded on Web pages.
> It's not going to be obvious to the user that the glyph displayed of
> such characters isn't using the character's code, but is further encoded.

Did you read any of what I said about document models? In this case the 
document model is not the same as either the display representation or 
the encoded form it's sent over the network. The document model is 
something like a tree: a web page contains a title, which is some 
string, and a body, which is a sequence of headings, paragraphs, images, 
etc.; and embedded in one paragraph is a link, and a link has a URL, 
and, and, etc.

The paragraph text is what it is. It may be encoded (e.g. > to &gt;) for 
transmission and storage as HTML but in the conceptual model that's just 
a greater-than sign and tags like </h1> are out-of-band things, existing 
outside of the paragraph text, and only represented by ascii "</h1>" 
when serialized for storage and transport.

The same goes for the target of a clickable link.

Put another way, we have

serialized form <----> document model <----> displayed form

and you're objecting to "don't copy from the displayed form instead of 
from the document model" by conflating that with the distinct 
proposition "copy from the serialized form".

> Things are ever more complicated if it's an 8-bit character since copy-n-paste
> operations have no way of telling the document being pasted into what
> character set was in use in the originating document.

A properly designed OS would likely treat all text as UTF-8, UTF-16, 
UTF-32, or some other thing during such transport, and would encourage 
application developers to use full Unicode text rather than specific 
encodings in document models, whatever was being used for serialization 
when the application needed to store files or communicate over the 
network. Failing that, the application would have to convert to Unicode 
on copy, and from Unicode on paste.

Put another way, "the system clipboard" should be treated as akin to 
another network protocol, and probably one that specifies UTF-8. If no 
canonical encoding like that, then the alternative would be for it to 
carry an analogue of the Content-Encoding: header common to various 
kinds of network traffic, which applications would need to set when 
copying and deal with when pasting.

Of course, right now there isn't a properly designed OS. We have 
Windows, which you're implying copies and pastes octet streams that can 
be interpreted differently by different applications, and then we have 
the Unixen, most of which don't even have a system clipboard. (MacOS is 
the big question mark here. There are also clipboards in most of the 
popular Linux window systems/managers, but I'm not sure how they work, 
and they only work with graphical apps. You couldn't copy from KWrite 
and paste into an emacs running in a terminal, not using emacs's own 
yank command. The terminal, if graphical, might support a "paste" that 
just simulates you typing into emacs whatever was in the clipboard, but 
there's probably all kinds of char. enc. headaches in that!)
Re: ? Jeff Relf has set a bad example.
#248640
Author: Demented Traveler
Date: Wed, 15 Feb 2012 05:24
36 lines
3369 bytes
On 14/02/2012 5:16 PM, tlvp wrote:
> On Tue, 14 Feb 2012 03:13:32 -0500, Demented Traveler wrote:
>
>>   If I select a block of text and hit
>> copy, I expect what's copied to be *the text as it exists in the
>> document*, not something that's been massaged for display.
>
> Really? Highlight and copy some italicized text material in two adjacent
> cells in a table on a web page as displayed in a browser, paste from that
> into a previously blank text document, and you honestly expect to find the
> TD I /I /TD TD I /I /TD fragment of the underlying HTML document that gives
> rise to that material?

Of course not. You, like Kerman, seem to be confusing the HTML 
representation used for storage and transport with the document model 
itself, which does not contain HTML tags but rather is just a rich text 
not unlike a word processor's contents.

I'd expect either the plain text, then, or rich text that will paste 
into Notepad as plain text and into Word as italic text, with the cell 
separation emerging as a tab. In a spreadsheet, I'd hope pasting 
something with a tab interprets the tab as "jump to next cell", so the 
cells would be pasted into the selected and the next cell in the 
spreadsheet.

Again, we have

serialized form <----> document model <----> displayed form
   |                          |                     |
   |                          |                     |
   V                          V                     V
HTML                some tree structure    some pixel array

The tree structure contains blocks of text and information about its 
layout and formatting. It is this, as best as possible, that should be 
copied from.
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248641
Author: tlvp
Date: Wed, 15 Feb 2012 05:33
12 lines
2081 bytes
On Tue, 14 Feb 2012 21:09:24 -0500, Ted S. wrote:

>  ... when other
> people quote him that character slows down Dialog as Dialog searches for
> the proper font to display the message in the Headerlist pane.

Is *that* what's going on ?!? I'd noticed it, too, but had no idea what the
problem was that Dialog was having, so thanks for shedding light on it.

Cheers, -- tlvp
-- 
Avant de repondre, jeter la poubelle, SVP.
Re: ? Jeff Relf has set a bad example.
#248643
Author: Adam H. Kerman
Date: Wed, 15 Feb 2012 14:38
50 lines
3761 bytes
Demented Traveler <detravel@simic.net> wrote:
>On 14/02/2012 11:28 AM, Adam H. Kerman wrote:
>>Demented Traveler<detravel@simic.net>  wrote:
>>>On 14/02/2012 2:07 AM, Russ Allbery wrote:
>>>>Demented Traveler<detravel@simic.net>   writes:

>>>>>But considering user searches for message IDs, where are they getting it
>>>>>in the first place? Probably by copy and paste from someplace (perhaps
>>>>>Google Groups). It's likely the already-normalized message ID and if
>>>>>it's not it'll be the original as injected, which will normalize to the
>>>>>same value.

>>>>You're assuming that copy and paste preserves the Unicode normalization
>>>>form.  Are you sure this is a valid assumption?

>>>Copy and paste, properly implemented, should just be a bit-exact copy
>>>operation.

>>Here's a straightforward example, seamus, of why that's not necessarily so:

>Who's this "seamus"?

>>A user sees text on a Web page, say a URL that's not a hyperlink, capable of
>>being displayed as plain old ASCII if it were a plain text document. Certain
>>characters allowed or required to be in URLs must be encoded on Web pages.
>>It's not going to be obvious to the user that the glyph displayed of
>>such characters isn't using the character's code, but is further encoded.

>Did you read any of what I said about document models? In this case the 
>document model is not the same as either the display representation or 
>the encoded form it's sent over the network. . . . 

I don't see what that has to do with "Copy and paste should just be a bit-
exact copy operation" as the application performing the copying won't
have access to the "document model". C'mon, seamus.

>The document model is something like a tree: a web page contains a title,
>which is some string, and a body, which is a sequence of headings,
>paragraphs, images, etc.; and embedded in one paragraph is a link,
>and a link has a URL, and, and, etc.

>The paragraph text is what it is. It may be encoded (e.g. > to &gt;) for 
>transmission and storage as HTML but in the conceptual model that's just 
>a greater-than sign and tags like </h1> are out-of-band things, existing 
>outside of the paragraph text, and only represented by ascii "</h1>" 
>when serialized for storage and transport.

Out of band? The hell they are.

The rest snipped.
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248649
Author: Shmuel Metz
Date: Wed, 15 Feb 2012 16:35
37 lines
3084 bytes
In <1sf24l33oz126.dlg@justacineast.motzarella.org>, on 02/14/2012
   at 09:09 PM, "Ted S." <fedya@hughes.spam> said:

>I haven't been following this thread closely, but I presume that's a
>valid M-ID?

   atext           =   ALPHA / DIGIT /    ; Printable US-ASCII
                       "!" / "#" /        ;  characters not including
                       "$" / "%" /        ;  specials.  Used for
atoms.
                       "&" / "'" /
                       "*" / "+" /
                       "-" / "/" /
                       "=" / "?" /
                       "^" / "_" /
                       "`" / "{" /
                       "|" / "}" /
                       "~"

   message-id      =   "Message-ID:" msg-id CRLF

   msg-id          =   [CFWS] "<" id-left "@" id-right ">" [CFWS]

   id-left         =   dot-atom-text / obs-id-left

   id-right        =   dot-atom-text / no-fold-literal / obs-id-right



-- 
Shmuel (Seymour J.) Metz, SysProg and JOAT  <http://patriot.net/~shmuel>

Unsolicited bulk E-mail subject to legal action.  I reserve the
right to publicly post or ridicule any abusive E-mail.  Reply to
domain Patriot dot net user shmuel+news to contact me.  Do not
reply to spamtrap@library.lspace.org
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248656
Author: Michael Moroney
Date: Wed, 15 Feb 2012 20:59
25 lines
2470 bytes
"Ted S." <fedya@hughes.spam> writes:

>On Tue, 14 Feb 2012 21:45:52 +0000 (UTC), Michael Moroney wrote:

>> I posted a message with Message-ID: <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>.

>I haven't been following this thread closely, but I presume that's a
>valid M-ID?

It is. Characters such as "?" amd "=", while unusual, are valid in a
Message-ID.

My suggestion was that the strings that look like RFC-2047 encodings
be treated as such, and voila! UTF-8 Message IDs!  Others have pointed
out problems with that, mainly multiple UTF-8 representations of the
same thing.

>Frankly, I'd like a way for Hamster to kill any message with that
>Unicode character Relf includes in the Subject: header, since when other
>people quote him that character slows down Dialog as Dialog searches for
>the proper font to display the message in the Headerlist pane.

Just kill anything with an unencoded high bit set in the Subject:
header. It's never valid. Do so and no more Relf and many (not all)
of the responses to him vanish as well.
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248657
Author: Adam H. Kerman
Date: Wed, 15 Feb 2012 21:33
25 lines
2496 bytes
Michael Moroney <moroney@world.std.spaamtrap.com> wrote:
>"Ted S." <fedya@hughes.spam> writes:
>>On Tue, 14 Feb 2012 21:45:52 +0000 (UTC), Michael Moroney wrote:

>>>I posted a message with Message-ID: <=?UTF-8?Q?=E2=9D=9A@=E2=9D=9A?=>.

>>I haven't been following this thread closely, but I presume that's a
>>valid M-ID?

>It is. Characters such as "?" amd "=", while unusual, are valid in a
>Message-ID.

You made me look it up.

RFC 822 uses addr-spec for Message-ID, same as a mailbox. A local mailbox
might be a file in a Unix file tree, so wouldn't I conclude that the local
part of addr-spec should be in the syntax of a permissable file name and
operating system dependent?

RFC 2822 doesn't discuss the issue of local file names. It allows atext
possibly surrounding periods for the local part. atext means
alpha, digit, and any character except controls, SP, and specials.
Specifically includes ! # $ % & ' * + - / = ? ^ _ ` { | } ~

Really? Some of these characters wouldn't cause trouble?
Re:  Jeff Relf has set a bad example.
#248658
Author: Russ Allbery
Date: Wed, 15 Feb 2012 21:53
25 lines
2883 bytes
Shmuel (Seymour J.) Metz <spamtrap@library.lspace.org.invalid> writes:
> Russ Allbery <rra@stanford.edu> said:

>>existing servers that don't like getting UTF-8 in NNTP commands.

> Wouldn't they give a 501? I'd expect a new capability, comparable to
> the UTF8SMTP Extension in RFC 5336, for non-ASCII message ids.

Who knows.  Part of the challenge of writing code for Usenet is that we
went through a period in the late 1990s and early 2000s where writing NNTP
software was a fun hobby for a lot of people.  Which was great, and it
resulted in a lot of interesting experimentation, but most of that code
wasn't written to any standard and the current RFCs at the time were
woefully out of date.  So what implementations do is a real hodge-podge.

That's why we have stuff like yEnc, which solves a real problem, but does
so by being a half-assed MIME content transfer encoding without any of the
signaling so that software can figure that out using the same tools one
would use with other CTEs.

-- 
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.
Re: I'm not a server, I don't follow server rules, I don't decide for others. 
#248659
Author: Russ Allbery
Date: Wed, 15 Feb 2012 21:56
27 lines
2584 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:

> RFC 822 uses addr-spec for Message-ID, same as a mailbox. A local
> mailbox might be a file in a Unix file tree, so wouldn't I conclude that
> the local part of addr-spec should be in the syntax of a permissable
> file name and operating system dependent?

No, it's more decoupled than that.  And RFC 822 has, similar to RFC 2822,
an actual grammar somewhere, I think, but I don't have the time at the
moment to try to find it.

> RFC 2822 doesn't discuss the issue of local file names. It allows atext
> possibly surrounding periods for the local part. atext means
> alpha, digit, and any character except controls, SP, and specials.
> Specifically includes ! # $ % & ' * + - / = ? ^ _ ` { | } ~

> Really? Some of these characters wouldn't cause trouble?

It's up to the local MTA to decide how to handle it and to do so safely.
Several of the more interesting characters, like /, were in widespread use
as part of gatewaying schemes to other mail systems.

-- 
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.
Page 1 of 2 • 85 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads