LookupError: unknown encoding: iso-2022-jp

Bug #266416 reported by Shub-users
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

We're not sending out the monthly password notices, because the cron/Python
job to do that keeps dying with the following error (sensitive information
omitted):

X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/usr/local/mailman>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=mailman>
Date: Sat, 1 Dec 2007 05:01:06 +0100 (CET)

Traceback (most recent call last):
  File "/usr/local/mailman/cron/mailpasswds", line 241, in <module>
    main()
  File "/usr/local/mailman/cron/mailpasswds", line 223, in main
    text.encode(enc, 'replace'), poplang)
  File "/usr/local/mailman/Mailman/Message.py", line 213, in __init__
    self.set_payload(text, charset)
  File "/usr/local/mailman/pythonlib/email/Message.py", line 246, in
set_payload
    self.set_charset(charset)
  File "/usr/local/mailman/pythonlib/email/Message.py", line 282, in
set_charset
    self._payload = charset.body_encode(self._payload)
  File "/usr/local/mailman/pythonlib/email/Charset.py", line 399, in
body_encode
    s = self.convert(s)
  File "/usr/local/mailman/pythonlib/email/Charset.py", line 282, in
convert
    return unicode(s, self.input_codec).encode(self.output_codec)
LookupError: unknown encoding: iso-2022-jp

[http://sourceforge.net/tracker/index.php?func=detail&aid=1842567&group_id=103&atid=100103]

Revision history for this message
Tokio Kikuchi (tkikuchi) wrote :

Originator: NO

What is the python version. The JapaneseCodecs package which is included
in mailman 2.1.9 is incompatible with python2.5. Python 2.4 and later
includes CJK codecs and can be used instead. Mailman 2.1.10 fixes this in
misc/paths.py.in.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.