summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsapiro2006-02-22 06:17:26 +0000
committermsapiro2006-02-22 06:17:26 +0000
commit01d2e4f5275e50bc556aaf57ddbeccadd5d2f4a0 (patch)
tree11591cf5f3c68c17179b42492dc1fa374f560f5b
parent078cb9ffd4580efdfe656d4b6d0da61593f04ab7 (diff)
downloadmailman-01d2e4f5275e50bc556aaf57ddbeccadd5d2f4a0.tar.gz
mailman-01d2e4f5275e50bc556aaf57ddbeccadd5d2f4a0.tar.zst
mailman-01d2e4f5275e50bc556aaf57ddbeccadd5d2f4a0.zip
Fixed bug 1435722 by encoding the i18n subject in the character set of the
translation rather that that of the list language. (The subscribers language may be different.)
-rw-r--r--Mailman/MailList.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index a8484e413..aa1da4b7c 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -210,7 +210,8 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
def GetConfirmJoinSubject(self, listname, cookie):
if mm_cfg.VERP_CONFIRMATIONS and cookie:
- cset = Utils.GetCharSet(self.preferred_language)
+ cset = i18n.get_translation().charset() or \
+ Utils.GetCharSet(self.preferred_language)
subj = Header(
_('Your confirmation is required to join the %(listname)s mailing list'),
cset, header_name='subject')
@@ -220,7 +221,8 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin,
def GetConfirmLeaveSubject(self, listname, cookie):
if mm_cfg.VERP_CONFIRMATIONS and cookie:
- cset = Utils.GetCharSet(self.preferred_language)
+ cset = i18n.get_translation().charset() or \
+ Utils.GetCharSet(self.preferred_language)
subj = Header(
_('Your confirmation is required to leave the %(listname)s mailing list'),
cset, header_name='subject')