This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jelie
Recipients eric.araujo, jelie, r.david.murray
Date 2010-11-02.22:06:04
SpamBayes Score 4.6319615e-06
Marked as misclassified No
Message-id <1288735570.3.0.458362390151.issue10284@psf.upfronthosting.co.za>
In-reply-to
Content
David, the headers are not at all supposed to be "utf-8" encoded.
For instance, have a look at the cn.bbs.comp.lang.python newsgroup:

http://groups.google.fr/group/cn.bbs.comp.lang.python

If you look at the source of the articles, you will for instance see that the Subject: header field is not MIME-encoded.  It is directly written in gb2312.

That's how news works in the wild.  Please do not break nntplib in Python 3.2!


Regarding AUTHINFO, the specification is not broken at all.  Bytes are expected, not strings in a particular encoding.  Well, most people are in fact confused when they speak about encodings -- me included :-)
The specification is pretty clear:  NNTP expects bytes.  And my text string is "\xC9ric", that's all.  Please also do not break nntplib when providing such strings on class instantiation.
History
Date User Action Args
2010-11-02 22:06:10jeliesetrecipients: + jelie, eric.araujo, r.david.murray
2010-11-02 22:06:10jeliesetmessageid: <1288735570.3.0.458362390151.issue10284@psf.upfronthosting.co.za>
2010-11-02 22:06:05jelielinkissue10284 messages
2010-11-02 22:06:04jeliecreate