diff options
author | Mark Sapiro <mark@msapiro.net> | 2009-02-12 18:38:01 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2009-02-12 18:38:01 -0800 |
commit | 9f3dcf617c4b4b79a6d7b16668627f79f0636aab (patch) | |
tree | 9a903e27b74fba0881111406465054a1e817697d | |
parent | ad504c221adac1ede7b59077ef7a8efc020ff3b3 (diff) | |
download | mailman2-9f3dcf617c4b4b79a6d7b16668627f79f0636aab.tar.gz mailman2-9f3dcf617c4b4b79a6d7b16668627f79f0636aab.tar.xz mailman2-9f3dcf617c4b4b79a6d7b16668627f79f0636aab.zip |
Worked around a potential problem in HyperArch.py with unicode character
set arguments. Bug #328353.
-rw-r--r-- | Mailman/Archiver/HyperArch.py | 5 | ||||
-rw-r--r-- | NEWS | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py index ad51596e..a532c81e 100644 --- a/Mailman/Archiver/HyperArch.py +++ b/Mailman/Archiver/HyperArch.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2008 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2009 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 @@ -302,6 +302,9 @@ class Article(pipermail.Article): self.decoded = {} cset = Utils.GetCharSet(mlist.preferred_language) cset_out = Charset(cset).output_charset or cset + if isinstance(cset_out, unicode): + # email 3.0.1 (python 2.4) doesn't like unicode + cset_out = cset_out.encode('us-ascii') charset = message.get_content_charset(cset_out) if charset: charset = charset.lower().strip() @@ -87,6 +87,9 @@ Here is a history of user visible changes to Mailman. - Changed Gui/Topics.py to validate regexps in VERBOSE mode. Bug #327008. + - Worked around a potential problem in HyperArch.py with unicode character + set arguments. Bug #328353. + i18n - Updated Dutch, Catalan and Polish translations. |