Index: trunk/debs/mailman/debian/patches/series |
— | — | @@ -34,3 +34,4 @@ |
35 | 35 | indexing-2.1.9-0.1.patch -p1 |
36 | 36 | htdig-2.1.9-0.1.patch |
37 | 37 | htdig_cron.patch -p1 |
| 38 | +90_i18n_valueerror.dpatch |
Index: trunk/debs/mailman/debian/patches/90_i18n_valueerror.dpatch |
— | — | @@ -0,0 +1,23 @@ |
| 2 | +#! /bin/sh /usr/share/dpatch/dpatch-run |
| 3 | +## 90_i18n_valueerror.dpatch by <mark@hawthorn.knams.wikimedia.org> |
| 4 | +## |
| 5 | +## All lines beginning with `## DP:' are a description of the patch. |
| 6 | +## DP: No description. |
| 7 | + |
| 8 | +@DPATCH@ |
| 9 | +diff -urNad mailman-2.1.8~/Mailman/i18n.py mailman-2.1.8/Mailman/i18n.py |
| 10 | +--- mailman-2.1.8~/Mailman/i18n.py 2006-02-23 06:25:29.000000000 +0000 |
| 11 | +@@ -87,8 +87,10 @@ |
| 12 | + for k, v in dict.items(): |
| 13 | + if isinstance(v, UnicodeType): |
| 14 | + dict[k] = v.encode(charset, 'replace') |
| 15 | +- return tns % dict |
| 16 | +- |
| 17 | ++ try: |
| 18 | ++ return tns % dict |
| 19 | ++ except ValueError: |
| 20 | ++ return tns |
| 21 | + |
| 22 | + |
| 23 | + def ctime(date): |
Property changes on: trunk/debs/mailman/debian/patches/90_i18n_valueerror.dpatch |
___________________________________________________________________ |
Added: svn:executable |
1 | 24 | + * |
Index: trunk/debs/mailman/debian/changelog |
— | — | @@ -1,3 +1,9 @@ |
| 2 | +mailman (1:2.1.9-4ubuntu1wm2) feisty; urgency=medium |
| 3 | + |
| 4 | + * Readd dirty fix for ValueError crash in i18n |
| 5 | + |
| 6 | + -- Mark Bergsma <mark@wikimedia.org> Sun, 1 Jul 2007 19:16:49 +0000 |
| 7 | + |
2 | 8 | mailman (1:2.1.9-4ubuntu1wm1) feisty; urgency=low |
3 | 9 | |
4 | 10 | * Resync with Ubuntu |