[ python-Bugs-852347 ] add support for cjkcodecs to Python email
SourceForge.net
noreply at sourceforge.net
Mon Dec 29 23:33:29 EST 2003
Bugs item #852347, was opened at 2003-12-01 17:05
Message generated for change (Comment added) made by bwarsaw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=852347&group_id=5470
Category: Python Library
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason R. Mastaler (jasonrm)
Assigned to: Barry A. Warsaw (bwarsaw)
Summary: add support for cjkcodecs to Python email
Initial Comment:
As discussed last week on the email-sig
list, the attached patch adds support for
the CJKCodecs package as an alternative
to the {Chinese,Japanese,Korean}Codecs
packages. CJKCodecs 1.0.2 and above
should work with this patch.
This is advantageous because the Chinese
and KoreanCodecs packages are no longer
supported,maintained or available for
download.
This patch does not break compatibility
with {Chinese,Japanese,Korean}Codecs,
so they can still be used if desired.
Lastly, this patch fixes a small typo that
broke GB2312.
----------------------------------------------------------------------
>Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-12-29 23:33
Message:
Logged In: YES
user_id=12800
I'm not even sure this patch is correct, since it breaks the
test suite. The problem is that self.output_codec ends up
being different with the patch than without it (in
Charset.__init__()). For example:
Python 2.3.3 (#1, Dec 19 2003, 11:33:00)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> from email.Charset import Charset
>>> c = Charset('euc-jp')
>>> c.output_codec
'japanese.iso-2022-jp'
>>>
But now with Charset.py.diff applied:
...
>>> c.output_codec
'euc-jp'
We need to figure out what the right thing to do here is.
----------------------------------------------------------------------
Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-12-29 10:19
Message:
Logged In: YES
user_id=12800
One more rev of Charset.py.diff
----------------------------------------------------------------------
Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-12-29 09:52
Message:
Logged In: YES
user_id=12800
Oops, with the typo fix for gb2312.
----------------------------------------------------------------------
Comment By: Barry A. Warsaw (bwarsaw)
Date: 2003-12-29 09:49
Message:
Logged In: YES
user_id=12800
Correct me if I'm wrong, but won't the attached patch work
better? It simply removes the entries from CODEC_MAP that
are already provided by cjkcodecs.aliases (and
japanese.aliases and korean.aliases).
See Charset.py.diff
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=852347&group_id=5470
More information about the Python-bugs-list
mailing list