[Mailman-Users] unexpected code byte in Header.py

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Tue Jan 10 22:02:59 CET 2006

imacat wrote:
> Dear all,
>     I have problem upgrading my Mailman 2.1.5 to Mailman 2.1.7.  I got
> the following error in /var/lib/mailman/logs/error when I tried to send
> the "who" request:
> Jan 11 02:33:06 2006 (12256) Uncaught runner exception: 'utf8' codec
> can't decode byte 0xb4 in position 8: unexpected code byte
> Jan 11 02:33:06 2006 (12256) Traceback (most recent call last):

>   File "/opt/mailman/Mailman/Handlers/CookHeaders.py", line 188, in process
>     i18ndesc = uheader(mlist, mlist.description, 'List-Id', maxlinelen=998)
>   File "/opt/mailman/Mailman/Handlers/CookHeaders.py", line 65, in uheader
>     return Header(s, charset, maxlinelen, header_name, continuation_ws)
>   File "/opt/mailman/pythonlib/email/Header.py", line 188, in __init__
>     self.append(s, charset, errors)
>   File "/opt/mailman/pythonlib/email/Header.py", line 272, in append
>     ustr = unicode(s, incodec, errors)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xb4 in position 8: unexpected code byte

As Mark has responded, it is a error in CookHeaders.py 'List-Id' 
processing.  The language code and charset for 'Traditional Chinese' 
have changes from big5/big5 to zh_TW/utf-8 because of compliance and 
code handling difficulty in python gettext.  If you have set description 
in chinese previously by mailman-2.1.5, then you may have to reset it 
via the admin interface or by bin/withlist script.

Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp

More information about the Mailman-Users mailing list