[New-bugs-announce] [issue10284] Exception raised when decoding NNTP newsgroup descriptions

Julien ÉLIE report at bugs.python.org
Mon Nov 1 21:22:40 CET 2010


New submission from Julien ÉLIE <julien at trigofacile.com>:

> +# - all commands are encoded as UTF-8 data (using the "surrogateescape"
> +#   error handler), except for raw message data (POST, IHAVE)
> +# - all responses are decoded as UTF-8 data (using the "surrogateescape"
> +#   error handler), except for raw message data (ARTICLE, HEAD, BODY)

It does not seem to work on my news server (news.trigofacile.com):

print(s.descriptions('*'))

Exception raised with an UnicodeEncodeError.  I do not know what is happening.
The same command works fine with Python 2.7 and 3.0.



Also, for AUTHINFO, be careful that nntplib should not send an UTF-8 string but a byte string.  (I have not tested.)
The username and the password are byte strings.

----------
components: Extension Modules
messages: 120161
nosy: jelie
priority: normal
severity: normal
status: open
title: Exception raised when decoding NNTP newsgroup descriptions
type: behavior
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10284>
_______________________________________


More information about the New-bugs-announce mailing list