Article View: news.software.nntp
Article #79942Re: UTF-8 in NNTP commands
From: Julien ÉLIE
Date: Sun, 28 Dec 2008 20:53
Date: Sun, 28 Dec 2008 20:53
31 lines
2364 bytes
2364 bytes
>> I think the
>> AUTHINFO USER/PASS code should just preserve the legacy approach of
>> treating the input as a byte string, since newer clients should hopefully
>> switch to SASL anyway and that's the best opportunity to change behavior
>> here.
>
> Hmm... It is not said in RFC 4643.
> If someone implements a compliant news client, he has to encode strings
> in UTF-8. And AUTHINFO USER/PASS will not work with news servers!
In fact, it is said only in the ABNF syntax:
authinfo-user-command = "AUTHINFO" WS "USER" WS username
username = 1*user-pass-char
user-pass-char = B-CHAR
; B- means based on bytes, excluding NUL CR and LF
B-CHAR = CTRL / TAB / SP / %x21-FF
Subtlety not easy to spot!
We can easily be caught in a trap.
And I guess that B-CHAR chars must not be overencoded in UTF-8 (I see that
bodies are also B-CHAR and they are not overencoded in UTF-8).
--
Julien ÉLIE
« Non omnia possumus omnes. » (Virgile)
Technical Details
Message-ID:
<gj8p0s$6vj$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!grolier!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mailReferences:
<gj8kvn$1aq$1@news.trigofacile.com> <87sko8m5wv.fsf@windlord.stanford.edu> <gj8o6p$5vh$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <gj8p0s$6vj$1@news.trigofacile.com> Subject: Re: UTF-8 in NNTP commands Date: Sun, 28 Dec 2008 21:53:39 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <gj8kvn$1aq$1@news.trigofacile.com> <87sko8m5wv.fsf@windlord.stanford.edu> <gj8o6p$5vh$1@news.trigofacile.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!grolier!usenet-fr.net!gegeweb.org!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 31 NNTP-Posting-Host: aaubervilliers-151-1-10-208.w83-114.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=response Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1230497628 7155 83.114.9.208 (28 Dec 2008 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sun, 28 Dec 2008 20:53:48 +0000 (UTC) In-Reply-To: <gj8o6p$5vh$1@news.trigofacile.com> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049