[Pkg-mailman-hackers] Pkg-mailman commit - rev 753 - in branches/experimental/debian: . patches
Thorsten Glaser
tg at moszumanska.debian.org
Sun Dec 29 14:41:46 UTC 2013
Author: tg
Date: 2013-12-29 14:41:46 +0000 (Sun, 29 Dec 2013)
New Revision: 753
Modified:
branches/experimental/debian/NEWS
branches/experimental/debian/changelog
branches/experimental/debian/patches/91_utf8.patch
Log:
next round
apparently, Mailman 2.x abuses sys.getdefaultencoding()
as ?\226?\128?\156use this as the application default encoding?\226?\128?\157, *and*
is not configurable, so I?\226?\128?\153m evil and change the default
system encoding to UTF-8 (WFM)
Modified: branches/experimental/debian/NEWS
===================================================================
--- branches/experimental/debian/NEWS 2013-12-29 03:36:21 UTC (rev 752)
+++ branches/experimental/debian/NEWS 2013-12-29 14:41:46 UTC (rev 753)
@@ -1,3 +1,18 @@
+mailman (1:2.1.16-1exp1) experimental; urgency=low
+
+ This version has changed the encoding of most strings, templates
+ and pages to UTF-8 to meet the Debian release goal of full UTF-8
+ support in all packages. It also no longer automatically converts
+ mails to ISO-8859-1.
+
+ If you have been using any nōn-ASCII strings in places such as
+ the mailing list description, these were be stored wrongly in the
+ list configuration file (config.pck), so you will need to change
+ those (e.g. via the webinterface) again in order to have them be
+ displayed correctly.
+
+ -- Thorsten Glaser <tg at mirbsd.de> Sun, 29 Dec 2013 14:35:50 +0000
+
mailman (1:2.1.9-6) unstable; urgency=medium
* This version will automatically upgrade indexes of the current
Modified: branches/experimental/debian/changelog
===================================================================
--- branches/experimental/debian/changelog 2013-12-29 03:36:21 UTC (rev 752)
+++ branches/experimental/debian/changelog 2013-12-29 14:41:46 UTC (rev 753)
@@ -1,3 +1,9 @@
+mailman (1:2.1.16-1exp2) experimental; urgency=low
+
+ * Try harder to use UTF-8
+
+ -- Thorsten Glaser <tg at mirbsd.de> Sun, 29 Dec 2013 14:40:17 +0000
+
mailman (1:2.1.16-1exp1) experimental; urgency=low
* Convert to UTF-8. (Closes: #398777, #535296, #732929)
Modified: branches/experimental/debian/patches/91_utf8.patch
===================================================================
--- branches/experimental/debian/patches/91_utf8.patch 2013-12-29 03:36:21 UTC (rev 752)
+++ branches/experimental/debian/patches/91_utf8.patch 2013-12-29 14:41:46 UTC (rev 753)
@@ -5,7 +5,17 @@
--- a/Mailman/Defaults.py.in
+++ b/Mailman/Defaults.py.in
-@@ -410,7 +410,7 @@ ARCHIVER_OBSCURES_EMAILADDRS = Yes
+@@ -23,6 +23,9 @@
+ # mm_cfg.py instead, in the designated area. See the comments in that file
+ # for details.
+
++import sys
++reload(sys)
++sys.setdefaultencoding('utf-8')
+
+ import os
+
+@@ -410,7 +413,7 @@ ARCHIVER_OBSCURES_EMAILADDRS = Yes
# is used in MIME to refer to a method of converting a sequence of
# octets into a sequence of characters. If you change the default
# charset, you might need to add it to VERBATIM_ENCODING below.
@@ -14,7 +24,7 @@
# Most character set encodings require special HTML entity characters to be
# quoted, otherwise they won't look right in the Pipermail archives. However
-@@ -419,7 +419,7 @@ DEFAULT_CHARSET = None
+@@ -419,7 +422,7 @@ DEFAULT_CHARSET = None
# encodings where the octet 0x26 does not always represent the & character.
# This variable contains a list of such characters sets which are not
# HTML-quoted in the archives.
@@ -23,7 +33,7 @@
# When the archive is public, should Mailman also make the raw Unix mbox file
# publically available?
-@@ -1537,7 +1537,7 @@ def _(s):
+@@ -1537,7 +1540,7 @@ def _(s):
LC_DESCRIPTIONS = {}
def add_language(code, description, charset, direction='ltr'):
@@ -145,3 +155,14 @@
formulario seguinte:
<MM-List-Subscription-Msg>
<ul>
+--- a/Mailman/Logging/Logger.py
++++ b/Mailman/Logging/Logger.py
+@@ -28,7 +28,7 @@ from Mailman.Logging.Utils import _logex
+ # Set this to the encoding to be used for your log file output. If set to
+ # None, then it uses your system's default encoding. Otherwise, it must be an
+ # encoding string appropriate for codecs.open().
+-LOG_ENCODING = 'iso-8859-1'
++LOG_ENCODING = 'utf-8'
+
+
+
More information about the Pkg-mailman-hackers
mailing list