Thread View: news.software.nntp
13 messages
13 total messages
Started by Julien ÉLIE
Mon, 13 Feb 2012 13:07
UTF-8 message-IDs
Author: Julien ÉLIE
Date: Mon, 13 Feb 2012 13:07
Date: Mon, 13 Feb 2012 13:07
17 lines
1838 bytes
1838 bytes
Hi all,
Regarding message-IDs in UTF-8, well, hmmm... there is a message in
USEFOR that is worthwhile to read:
http://www.imc.org/ietf-usefor/mail-archive/msg04791.html
I still have not asked in inn-workers what would be the best to do for
an implementation in INN.
Internationalization is happening in mail headers; UTF-8 message-IDs
will soon appear in mail... and also probably in netnews...
--
Julien ÉLIE
« – Que lui est-il arrivé ? Un choc moral ?
– Oui, avec un menhir. » (Astérix)
Re: UTF-8 message-IDs
Author: Adam H. Kerman
Date: Mon, 13 Feb 2012 14:44
Date: Mon, 13 Feb 2012 14:44
20 lines
2042 bytes
2042 bytes
Julien <iulius@nom-de-mon-site.com.invalid> wrote: >Regarding message-IDs in UTF-8, well, hmmm... there is a message in >USEFOR that is worthwhile to read: > http://www.imc.org/ietf-usefor/mail-archive/msg04791.html >I still have not asked in inn-workers what would be the best to do for >an implementation in INN. >Internationalization is happening in mail headers; UTF-8 message-IDs >will soon appear in mail... and also probably in netnews... Which message states precisely the nature of the problem that requires solving? Are we going to encounter a shortage of Message-IDs unless the number of valid characters are increased? If it's an utterly pointless thing to do, why do people spend any time discussing it?
Re: UTF-8 message-IDs
Author: Joshua Cranmer
Date: Mon, 13 Feb 2012 16:30
Date: Mon, 13 Feb 2012 16:30
37 lines
2992 bytes
2992 bytes
On 2/13/2012 8:44 AM, Adam H. Kerman wrote: > Julien<iulius@nom-de-mon-site.com.invalid> wrote: > >> Regarding message-IDs in UTF-8, well, hmmm... there is a message in >> USEFOR that is worthwhile to read: > >> http://www.imc.org/ietf-usefor/mail-archive/msg04791.html > >> I still have not asked in inn-workers what would be the best to do for >> an implementation in INN. >> Internationalization is happening in mail headers; UTF-8 message-IDs >> will soon appear in mail... and also probably in netnews... > > Which message states precisely the nature of the problem that requires > solving? Reading the original thread leads me that the thought was "if we allow UTF-8 in most other headers, it's going to creep in anyways..." The only specific concern I've seen appears to be that a Message-ID is generated by <some random UUID function that produces ASCII>@<local domain name>; if the latter ended up resolving to an i18n address, then UTF-8 might sneak in. That appears to be the largest concern, although it also appears to be implicit in the original discussion, <http://www.ietf.org/mail-archive/web/ima/current/msg04339.html> is the best document that describes why. > If it's an utterly pointless thing to do, why do people spend > any time discussing it? They decided to bring up things like normalization, gateway responsibilities, etc., and also a lot of time debating how much harm could come from introducing UTF-8 in message IDs. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
Re: UTF-8 message-IDs
Author: Adam H. Kerman
Date: Mon, 13 Feb 2012 17:14
Date: Mon, 13 Feb 2012 17:14
51 lines
3483 bytes
3483 bytes
Joshua Cranmer <Pidgeot18@verizon.invalid> wrote: >On 2/13/2012 8:44 AM, Adam H. Kerman wrote: >>Julien<iulius@nom-de-mon-site.com.invalid> wrote: >>>Regarding message-IDs in UTF-8, well, hmmm... there is a message in >>>USEFOR that is worthwhile to read: >>> http://www.imc.org/ietf-usefor/mail-archive/msg04791.html >>>I still have not asked in inn-workers what would be the best to do for >>>an implementation in INN. >>>Internationalization is happening in mail headers; UTF-8 message-IDs >>>will soon appear in mail... and also probably in netnews... >>Which message states precisely the nature of the problem that requires >>solving? >Reading the original thread leads me that the thought was "if we allow >UTF-8 in most other headers, it's going to creep in anyways..." You don't re-engineer something due to one creep. >The only specific concern I've seen appears to be that a Message-ID is >generated by <some random UUID function that produces ASCII>@<local >domain name>; if the latter ended up resolving to an i18n address, then >UTF-8 might sneak in. That appears to be the largest concern, although >it also appears to be implicit in the original discussion, ><http://www.ietf.org/mail-archive/web/ima/current/msg04339.html> is the >best document that describes why. Thanks. I think I draw a different conclusion than the author. Maybe changes at higher levels should not be accepted until all the details are worked out for making changes at lower levels, you know, so already deployed stuff doesn't break. Also, the guy who convinced everyone else to accept non-ASCII characters in domain names because it would be cool should have been told, in no uncertain terms, that he's the guy who gets to rewrite and test the concept on deployed code. >>If it's an utterly pointless thing to do, why do people spend >>any time discussing it? >They decided to bring up things like normalization, gateway >responsibilities, etc., and also a lot of time debating how much harm >could come from introducing UTF-8 in message IDs. That sounds like a worthwhile discussion.
Re: UTF-8 message-IDs
Author: Julien ÉLIE
Date: Mon, 13 Feb 2012 19:24
Date: Mon, 13 Feb 2012 19:24
48 lines
3580 bytes
3580 bytes
Hi Adam,
> If it's an utterly pointless thing to do, why do people spend
> any time discussing it?
Because UTF-8 will probably one day appear in headers, and month by
month become more and more wide-spread. This day gets closer.
Better prepare this day sooner, for a smoother transition, isn't it?
Mail addresses (seen in From:, Approved:, Sender: headers for instance),
domain names (Path: ...), message-IDs, newsgroup names, Distribution:
and Keywords: header fields, etc. are probably going to use UTF-8.
As Joshua said, gatewing mail<->news when UTF-8 message-IDs or other
headers in UTF-8 are used in mail will become problematic.
Please note that RFC 3977 began to hint at such transition:
[speaking about the overview]
The content of a header SHOULD be in UTF-8. However, if an
implementation receives an article from elsewhere that uses octets in
the range 128 to 255 in some other manner, it MAY pass it to a client
or server without modification.
[speaking about newsgroup names]
o Although this specification allows UTF-8 for newsgroup names, they
SHOULD be restricted to US-ASCII until a successor to RFC 1036
[RFC1036] standardises another approach. 8-bit encodings SHOULD
NOT be used because they are likely to cause interoperability
problems.
Restricting newsgroup names to UTF-8 is not a complete solution. In
particular, when new newsgroup names are created or a user is asked
to enter a newsgroup name, some scheme of canonicalisation will need
to take place. This specification does not attempt to define that
canonicalization; further work is needed in this area, in conjunction
with the article format specifications. Until such specifications
are published, implementations SHOULD match newsgroup names octet by
octet. It is anticipated that any approved scheme will be applied
"at the edges", and therefore octet-by-octet comparison will continue
to apply to most, if not all, uses of newsgroup names in NNTP.
--
Julien ÉLIE
« – Que lui est-il arrivé ? Un choc moral ?
– Oui, avec un menhir. » (Astérix)
Re: UTF-8 message-IDs
Author: Russ Allbery
Date: Mon, 13 Feb 2012 20:52
Date: Mon, 13 Feb 2012 20:52
31 lines
2649 bytes
2649 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Regarding message-IDs in UTF-8, well, hmmm... there is a message in
> USEFOR that is worthwhile to read:
> http://www.imc.org/ietf-usefor/mail-archive/msg04791.html
> I still have not asked in inn-workers what would be the best to do for
> an implementation in INN. Internationalization is happening in mail
> headers; UTF-8 message-IDs will soon appear in mail... and also probably
> in netnews...
I'm dubious that mail will actually introduce UTF-8 message IDs, but
possibly they will without realizing the consequences since mail doesn't
care as much about message ID uniqueness and comparison.
The huge problem with UTF-8 message IDs in netnews is that, unlike with
ASCII, there is not one unique way to express a given character in UTF-8.
There are often multiple different ways that should compare equal but
which won't in a byte-for-byte comparison, and it can be literally
impossible to tell them apart in a compliant UTF-8 display. That means
that if we introduce UTF-8 in message IDs, we should do normalization
before comparison, which means that you introduce Unicode normalization
(which is not a particularly cheap operation) into the most
performance-critical path in a news server.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: UTF-8 message-IDs
Author: Adam H. Kerman
Date: Mon, 13 Feb 2012 21:20
Date: Mon, 13 Feb 2012 21:20
59 lines
4123 bytes
4123 bytes
Julien <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Adam, >>If it's an utterly pointless thing to do, why do people spend >>any time discussing it? >Because UTF-8 will probably one day appear in headers, and month by >month become more and more wide-spread. This day gets closer. >Better prepare this day sooner, for a smoother transition, isn't it? My opinion is, write better parsers and don't require encoding of host.domain into Message-ID if it contains non-ASCII. Don't accept it. Don't pass it along. >Mail addresses (seen in From:, Approved:, Sender: headers for instance), >domain names (Path: ...), message-IDs, newsgroup names, Distribution: >and Keywords: header fields, etc. are probably going to use UTF-8. Distribution isn't even a problem. It's ignored unless the two peering systems recognize the specified Distribution. Keywords, well, that doesn't affect propagation. News sites could chose not to use non-ASCII in their own domain names, which takes care of Path. That would make a great deal of sense. From, Approved, Sender... You know, a number of people are going to spend a lot of time writing new code so assholes will be able to munge mailbox addresses in even cuter ways, or use actual mailboxes that they would never check (or route incoming mail to dev/null). The trouble with not using ASCII is things become even more confusing to humans when parsing by eyeball is necessary to figure out what went wrong. Did this letter have the wrong accent on it? Do I remember when a grave or an acute accent is used? Is this whitespace an ASCII space character or a non-breaking space? Why is the non-breaking space used in this unusual position? ASCII is confusing enough. There's no universal mastery of the concept of the 8-position tab. Hell, look how many clients convert tab characters into sequences of spaces. We have three different line boundaries in use. We have different operating systems requiring the use of backslash versus slash to indicate directories. What about Chinese characters, both simplified and traditional, GB versus Big5, plus Japanese and Korean? What if two parties communicate in the same language, but one party is less familiar with the characters used in his domain name than the other party is? We may be hindering international communication, not enhancing it. In any event, to solve a non-existent problem, somebody has created a hell of a lot of work for programmers writing lower level processes for which they won't get paid. Fighting the creation of pointless work for other people to do is the right thing, Julien. Since you actually are one of the people doing this work, you may be in a position to thwart some of the nonsense.
Re: UTF-8 message-IDs
Author: Xavier Roche
Date: Mon, 13 Feb 2012 21:44
Date: Mon, 13 Feb 2012 21:44
12 lines
1851 bytes
1851 bytes
Le 13/02/2012 21:52, Russ Allbery a écrit : > The huge problem with UTF-8 message IDs in netnews is that, unlike with > ASCII, there is not one unique way to express a given character in UTF-8. How ? In UTF-8, ASCII (7-bit) is still ASCII, and each codepoint has an unique representation after that. Or are you referring to the various spaces used in Unicode ? (but they are different codepoints though) The only issue would be the >0xffff Unicode characters that may be encoded either using long UTF-8 sequences, or two low/high surrogates. (But considering UTF-8 surrogates forbidden is probably a sane/safe solution.)
Re: UTF-8 message-IDs
Author: Russ Allbery
Date: Mon, 13 Feb 2012 22:05
Date: Mon, 13 Feb 2012 22:05
18 lines
1954 bytes
1954 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes:
> Le 13/02/2012 21:52, Russ Allbery a écrit :
>> The huge problem with UTF-8 message IDs in netnews is that, unlike with
>> ASCII, there is not one unique way to express a given character in
>> UTF-8.
> How ? In UTF-8, ASCII (7-bit) is still ASCII, and each codepoint has an
> unique representation after that. Or are you referring to the various
> spaces used in Unicode ?
http://unicode.org/reports/tr15/
--
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: UTF-8 message-IDs
Author: Xavier Roche
Date: Tue, 14 Feb 2012 07:00
Date: Tue, 14 Feb 2012 07:00
11 lines
1750 bytes
1750 bytes
On 02/13/2012 11:05 PM, Russ Allbery wrote: >> How ? In UTF-8, ASCII (7-bit) is still ASCII, and each codepoint has an >> unique representation after that. Or are you referring to the various >> spaces used in Unicode ? > http://unicode.org/reports/tr15/ Yes, but this is normalization ; why would we want to normalize message-id's ? An é is not identical to an e, for example (depending on the normalization used, you may want to decompose the acute accent into a letter+a modifier, and remove the later)
Re: UTF-8 message-IDs
Author: Russ Allbery
Date: Tue, 14 Feb 2012 07:28
Date: Tue, 14 Feb 2012 07:28
22 lines
2299 bytes
2299 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes:
> On 02/13/2012 11:05 PM, Russ Allbery wrote:
>> http://unicode.org/reports/tr15/
> Yes, but this is normalization ; why would we want to normalize
> message-id's ? An é is not identical to an e, for example (depending on
> the normalization used, you may want to decompose the acute accent into
> a letter+a modifier, and remove the later)
I went into this at more length in some of the other messages, but the
short version is: because you got the message ID from two different places
and you want to compare it. User entry, copy and paste through a
Unicode-aware OS, posting a news article on the web, saving it in an
editor, transferring it to another system... all those things could change
the normalization of Unicode characters.
--
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: UTF-8 message-IDs
Author: Xavier Roche
Date: Tue, 14 Feb 2012 07:47
Date: Tue, 14 Feb 2012 07:47
16 lines
2224 bytes
2224 bytes
On 02/14/2012 08:28 AM, Russ Allbery wrote: > User entry, copy and paste through a > Unicode-aware OS, posting a news article on the web, saving it in an > editor, transferring it to another system... all those things could change > the normalization of Unicode characters. Yes, makes sense ; but I fear that in most cases, no normalization will be done, and the "Unicode" (I mean, non-ascii actually, even if ASCII is a Unicode subset) character will be replaced by something like "?". Once a system accept and handle Unicode, my feeling is that it will never mess up characters (ie. normalize them), but I may be wrong... For systems unable to handle properly UTF-8, I do not see any solution, except excluding non-ascii for comparison (ie. "café@foo" == "café@foo" == "caf@foo")
Re: UTF-8 message-IDs
Author: Adam H. Kerman
Date: Tue, 14 Feb 2012 15:51
Date: Tue, 14 Feb 2012 15:51
27 lines
2862 bytes
2862 bytes
Russ Allbery <rra@stanford.edu> wrote: >Xavier Roche <xroche@free.fr.NOSPAM.invalid> writes: >>On 02/13/2012 11:05 PM, Russ Allbery wrote: >>>http://unicode.org/reports/tr15/ >>Yes, but this is normalization ; why would we want to normalize >>message-id's ? An é is not identical to an e, for example (depending on >>the normalization used, you may want to decompose the acute accent into >>a letter+a modifier, and remove the later) >I went into this at more length in some of the other messages, but the >short version is: because you got the message ID from two different places >and you want to compare it. User entry, copy and paste through a >Unicode-aware OS, posting a news article on the web, saving it in an >editor, transferring it to another system... all those things could change >the normalization of Unicode characters. If you're comparing the results of copy-n-paste, ugh. The receiving system couldn't possibly know what assumptions the copy-n-paste function made. Sometimes they try to copy the character glyph, recoding it to something else. Sometimes the character code, and not recoding it to something else so it displays the same. More often than not, it substitutes a placeholder for an undisplayable code. This couldn't possibly work under all circumstances unless the allowable character codes continue to be in the ASCII range.
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