Add Debian directory
[mspang/vmailman.git] / debian / patches / 00_stolen_from_HEAD.patch
1 Patch: 00_stolen_from_HEAD.patch
2 Author: Tollef Fog Heen <tfheen@debian.org>
3 Handle empty queue files.
4 Index: Mailman/Handlers/Scrubber.py
5 ===================================================================
6 --- Mailman/Handlers/Scrubber.py.orig   2006-08-15 15:12:19.000000000 +0800
7 +++ Mailman/Handlers/Scrubber.py        2006-08-15 15:14:15.000000000 +0800
8 @@ -370,6 +370,8 @@
9                      t = u.encode('ascii', 'replace')
10                  try:
11                      # Should use HTML-Escape, or try generalizing to UTF-8
12 +                    if len(charset) == 0:
13 +                        charset = 'us-ascii'
14                      t = t.encode(charset, 'replace')
15                  except (UnicodeError, LookupError, ValueError):
16                      t = t.encode(lcset, 'replace')