about iso-2022-jp

KaiGai Kohei kaigai at ak.jp.nec.com
Mon Sep 3 04:20:44 EDT 2007


Hi,

I found the following trouble report and solution in the mailman-jp
user's list.
  http://mm.tkikuchi.net/pipermail/mmjp-users/2006-October/001882.html

He reported that his mailman displays "unknown encoding" error and die
as follows:
> ---------------------------------------------------------------------
>   File "/usr/local/mailman/pythonlib/email/Charset.py", line 283, in convert
>     ).encode(self.output_codec, 'replace')
> LookupError: unknown encoding: iso-2022-jp
> ---------------------------------------------------------------------

They said this problem was actualized when any Japanese charatcter was
parsed after "import japanese" on the combination of mailman-2.1.9
and python-2.5.

Another person suggested to comment out "import japanese" in the
following files:
  /usr/lib/mailman/cron/paths.py
  /usr/lib/mailman/tests/paths.py
  /usr/lib/mailman/scripts/paths.py
  /usr/lib/mailman/bin/paths.py

Python-2.4 or later has CJKCodec module in the default, so it is
applied if "japanese" module is not loaded explicitly and you can
avoid the trouble.
He estimated "japanese" module breaks something in the combination.
 (*) CJK = China, Japan, Korea

Then, the reporter replied his trouble got resolved.

Could you try this way to confirm whether it can be a solution
for us, or not.

Thanks,
-- 
OSS Platform Development Division, NEC
KaiGai Kohei <kaigai at ak.jp.nec.com>



More information about the JP-kernelnewbies mailing list