aboutsummaryrefslogtreecommitdiffstats
path: root/misc/paths.py.in
diff options
context:
space:
mode:
authorbwarsaw <>2003-12-30 04:47:45 +0000
committerbwarsaw <>2003-12-30 04:47:45 +0000
commit9ae689d892756a6a5bd18ac044d927890ca17764 (patch)
treeff1e80a34aba557a8ccf5a2ac69f700b0ac12197 /misc/paths.py.in
parentf779db67ef1f6ef58d42d4a0bedfc70faf1fdb4b (diff)
downloadmailman2-9ae689d892756a6a5bd18ac044d927890ca17764.tar.gz
mailman2-9ae689d892756a6a5bd18ac044d927890ca17764.tar.xz
mailman2-9ae689d892756a6a5bd18ac044d927890ca17764.zip
Backing out the switch to cjkcodecs. There were too many problems
with this including - couldn't get correct, backwards compatible, working fixes into Python in time - some controversy over whether cjkcodecs are best for Japanese. As we're running out of time, we'll keep the status quo from Mailman 2.1.3 here.
Diffstat (limited to 'misc/paths.py.in')
-rw-r--r--misc/paths.py.in14
1 files changed, 9 insertions, 5 deletions
diff --git a/misc/paths.py.in b/misc/paths.py.in
index 0bc896b3..c88d3e7f 100644
--- a/misc/paths.py.in
+++ b/misc/paths.py.in
@@ -49,8 +49,12 @@ sitedir = os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3],
sys.path.append(sitedir)
-# We explicitly import CJKCodecs here since we inhibit the importing of the
-# site module. As of CJKCodecs-1.0, you have to do the second import. We may
-# have to re-activate the first line if an upgrade changes this.
-#import cjkcodecs
-import cjkcodecs.aliases
+# In a normal interactive Python environment, the japanese.pth and korean.pth
+# files would be imported automatically. But because we inhibit the importing
+# of the site module, we need to be explicit about importing these codecs.
+import japanese
+# As of KoreanCodecs 2.0.5, you had to do the second import to get the Korean
+# codecs installed, however leave the first import in there in case an upgrade
+# changes this.
+import korean
+import korean.aliases