aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authortkikuchi <>2004-11-13 04:39:33 +0000
committertkikuchi <>2004-11-13 04:39:33 +0000
commitd574f234fda1e19e778eaeda95170fbaa98fa1fc (patch)
tree3510aa9c19447e7b40c6618e87672c0cf4ea2924 /Mailman
parentc1d0097271a8348422201cb65257bbd468152ded (diff)
downloadmailman2-d574f234fda1e19e778eaeda95170fbaa98fa1fc.tar.gz
mailman2-d574f234fda1e19e778eaeda95170fbaa98fa1fc.tar.xz
mailman2-d574f234fda1e19e778eaeda95170fbaa98fa1fc.zip
Normalize charset to the output if input/output are different.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Handlers/Scrubber.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py
index 6116806b..070c307d 100644
--- a/Mailman/Handlers/Scrubber.py
+++ b/Mailman/Handlers/Scrubber.py
@@ -315,6 +315,9 @@ Url : %(url)s
# language's charset.
if not charset or charset == 'us-ascii':
charset = lcset_out
+ else:
+ # normalize to the output charset if input/output are different
+ charset = Charset(charset).output_charset or charset
# We now want to concatenate all the parts which have been scrubbed to
# text/plain, into a single text/plain payload. We need to make sure
# all the characters in the concatenated string are in the same