Index: Syslog.py =================================================================== RCS file: /cvsroot/mailman/mailman/Mailman/Logging/Syslog.py,v retrieving revision 2.3.2.1 diff -u -r2.3.2.1 Syslog.py --- Syslog.py 27 Aug 2005 01:40:16 -0000 2.3.2.1 +++ Syslog.py 15 Dec 2005 02:42:57 -0000 @@ -55,7 +55,12 @@ # It's really bad if exceptions in the syslogger cause other crashes except Exception, e: msg = 'Bad format "%s": %s: %s' % (origmsg, repr(e), e) - logf.write(msg + '\n') + try: + logf.write(msg + '\n') + except UnicodeError: + # Python 2.4 may fail to write 8bit (non-ascii) characters + import quopri + logf.write(quopri.encodestring(msg) + '\n') # For the ultimate in convenience __call__ = write