🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83616

Encoding of AUTHINFO USER/PASS arguments

#83616
From: Julien ÉLIE
Date: Wed, 03 Nov 2010 20:37
41 lines
2551 bytes
Hi,

In the nntplib implementation of Python 3.2, a question is raised
about how AUTHINFO USER/PASS arguments should be encoded.

The initial implementation of RFC 4643 they do is to encode
everything in UTF-8 because RFC 3977 mentions that "The character
set for all NNTP commands is UTF-8." and RFC 4643 does not say
anything about the encoding.
Just a "user-pass-char = B-CHAR" without any explanation...


I therefore wonder how news clients handle 8-bit passwords.

** How do current news readers send them to news servers?
** And how news servers should decode them?


Suppose my password is "été".  What is sent for:

  AUTHINFO PASS été
?

Is it '\xE9' + 't' + '\xE9' (3 bytes) or "été" (5 bytes,
encoded in UTF-8)?


It appears that RFC 4643 does not explain the expected behaviour
on that subject.
If I have a user name written in Chine characters, GB2312, Big-5
and UTF-8 are quite different!

What should be done?  Is there an interoperable way to follow?
(news clients + news servers)

-- 
Julien ÉLIE

« Je ne cherche pas à connaître les réponses, je cherche à comprendre
  les questions. » 
Technical Details
Message-ID: <iash7b$1vm$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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-2-50.w83-114.abo.wanadoo.fr!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <iash7b$1vm$1@news.trigofacile.com>
Subject: Encoding of AUTHINFO USER/PASS arguments
Date: Wed, 3 Nov 2010 21:37:46 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder4.news.weretis.net!news.trigofacile.com!.POSTED.aaubervilliers-151-1-2-50.w83-114.abo.wanadoo.fr!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 41
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-15";
 reply-type=original
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 3 Nov 2010 20:38:03 +0000 (UTC)
Injection-Info: news.trigofacile.com;
 posting-host="aaubervilliers-151-1-2-50.w83-114.abo.wanadoo.fr:83.114.1.50";
 logging-data="2038"; mail-complaints-to="abuse@trigofacile.com"
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6002.18197
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263
X-Original-Bytes: 2360