[Mailman-Developers] Re: [Mailman-checkins] mailman/misc CJKCodecs-1.0.tar.gz, NONE, 1.1.2.1 .cvsignore, 2.2, 2.2.2.1 Makefile.in, 2.33.2.3, 2.33.2.4 paths.py.in, 2.6, 2.6.2.1 JapaneseCodecs-1.4.9.tar.gz, 2.1, NONE KoreanCodecs-2.0.5.tar.gz, 2.1, NONE

Barry Warsaw barry at python.org
Mon Dec 29 09:10:24 EST 2003


On Mon, 2003-12-29 at 08:53, Barry Warsaw wrote:

> It would be nice if cjkcodecs provided backwards compatibility. 
> Otherwise, we probably want to provide some ourselves in
> email/Charset.py.  I'm not sure there's a better way to do this, but
> attached is a strawman (untested) patch for email 2.5.5/Python 2.3.4.  

Amend that.  If I understand how all this works correctly, then
importing cjkcodecs.aliases provides direct mapping for all the
charsets.  So since we already have "import cjkcodecs.aliases" in
Mailman's paths.py, we could just delete euc-jp, iso-2022-jp, shift_jis,
euc-kr, iso-2022-kr, ks_c_5601-1987, and johab from CODEC_MAP and be
done with it.

It looks like we didn't need these aliases in CODEC_MAPS even with the
older codec packages, since they define all the aliases as well.

-Barry





More information about the Mailman-Developers mailing list