[Mailman-Users] problems with using Chinese(gb2312) under mailman 2.1.1

Isaac Claymore clay at dawning.com.cn
Thu Feb 13 09:07:14 CET 2003


Hi folks, I've being running several lists under mailman 2.0.12 for
over a year, and never met any problem with Chinese(gb2312) characters
in any part of lists emails.

Recently mailman 2.1.1 was released with better multilingual support,
so I decided to test it on a fresh box without any previous mailman
setting.

Very soon I came across two problems with a newly created test list:

1. according to README-I18N.en which came with the sources, Simplified
Chinese(i.e. gb2312) is supported OUT-OF-THE BOX. In the web interface:
mailman/admin/test/language --> "Languages supported by this list", I
found 17 options, but neither Simplified Chinese nor Traditional
Chinese was among them;
2. Whenever emails with gb2312 characters in their subjects are sent
to the test list:

Feb 13 15:08:21 2003 (9216) Uncaught runner exception: unknown
encoding
Feb 13 15:08:21 2003 (9216) Traceback (most recent call last):
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 105, in
  _oneloop
    self._onefile(msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 155, in
  _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 130,
  in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 153,
  in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Handlers/CookHeaders.py", line 75,
  in process
    prefix_subject(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Handlers/CookHeaders.py", line 262,
  in prefix_subject
    h.append(s, c)
  File "/usr/local/mailman/pythonlib/email/Header.py", line 243, in
  append
    s = s.encode(outcodec)
LookupError: unknown encoding

But we don't have any problem with this under mailman 2.0.12...

My mm_cfg.py is:

DEFAULT_CHARSET = 'gb2312'
VERBATIM_ENCODING = ['gb2312', 'iso-2022-jp']

Did I miss anything?

Any hint or help is greatly appreciated ;)

-- 

Isaac Claymore                  /"\    ASCII Ribbon Campaign
Dawning Inc.                    \ /    Respect for open standards
Beijing, China                   X     No HTML/RTF in email
http://www.dawning.com.cn       / \    No M$ Word docs in email



More information about the Mailman-Users mailing list