[Pkg-mailman-hackers] Bug#391700: Mailman: Catch charset decoding errors

Jan-Benedict Glaw jbglaw at lug-owl.de
Sun Oct 8 08:30:26 UTC 2006


Package: mailman
Version: 2.1.5-8sarge5

Hi!

I got this in mailman's error log:

Oct 08 10:15:28 2006 (25437) Uncaught runner exception: 'ascii' codec can't decode byte 0x92 in position 23: ordinal not in range(128)
Oct 08 10:15:28 2006 (25437) Traceback (most recent call last):
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
    self._onefile(msg, msgdata)
  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 167, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/lib/mailman/Mailman/Queue/CommandRunner.py", line 223, in _dispose
    res = Results(mlist, msg, msgdata)
  File "/usr/lib/mailman/Mailman/Queue/CommandRunner.py", line 77, in __init__
    subj = make_header(decode_header(subj)).__unicode__()
  File "/usr/lib/python2.3/email/Header.py", line 144, in make_header
    h.append(s, charset)
  File "/usr/lib/python2.3/email/Header.py", line 272, in append
    ustr = unicode(s, incodec, errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x92 in position 23: ordinal not in range(128)

Oct 08 10:15:28 2006 (25437) SHUNTING: 1160295328.155097+9158434379159cc333bed12b059f9043c3c0e93b


Since I'm not into Python, no patch... Seems whoever tries to recode
something to unicode didn't expect that this could fail.

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw at lug-owl.de              +49-172-7608481
Signature of:            http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
the second  :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-mailman-hackers/attachments/20061008/d2275ee4/attachment.pgp


More information about the Pkg-mailman-hackers mailing list