------------------------------------------------------------
revno: 1149
committer: Mark Sapiro <[email protected]>
branch nick: 2.1
timestamp: Fri 2008-12-19 12:23:41 -0800
message:
Fixed an issue where in some circumstances HyperArch.py would translate
' at ' into the wrong language ultimately throwing a UnicodeDecodeError
when the translation was decoded with a different character set.
Bug #308152.
modified:
Mailman/Archiver/HyperArch.py
NEWS
=== modified file 'Mailman/Archiver/HyperArch.py'
--- a/Mailman/Archiver/HyperArch.py 2008-06-29 21:06:46 +0000
+++ b/Mailman/Archiver/HyperArch.py 2008-12-19 20:23:41 +0000
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2007 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2008 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
@@ -574,8 +574,8 @@
if mm_cfg.ARCHIVER_OBSCURES_EMAILADDRS:
otrans = i18n.get_translation()
try:
+ i18n.set_language(self._lang)
atmark = unicode(_(' at '), cset)
- i18n.set_language(self._lang)
body = re.sub(r'([-+,.\w]+)@([-+.\w]+)',
'\g<1>' + atmark + '\g<2>', body)
finally:
=== modified file 'NEWS'
--- a/NEWS 2008-12-07 19:46:59 +0000
+++ b/NEWS 2008-12-19 20:23:41 +0000
@@ -54,6 +54,11 @@
instead of bad listname when the list name had non-ascii characters.
SF Bug #2126489.
+ - Fixed an issue where in some circumstances HyperArch.py would translate
+ ' at ' into the wrong language ultimately throwing a UnicodeDecodeError
+ when the translation was decoded with a different character set.
+ Bug #308152.
+
2.1.11 (30-Jun-2008)
New Features
--
Stable, maintained release series
https://code.launchpad.net/~mailman-coders/mailman/2.1
You are receiving this branch notification because you are subscribed to it.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org