Comment 5 for bug 1029116

Revision history for this message
Aimon Bustardo (aimonb) wrote : Re: Bad characters in syslog output

ok that worked.. Diff:

--- /usr/lib/python2.7/logging/handlers.py 2012-07-25 20:25:24.545451192 -0700
+++ handlers.py 2012-07-25 20:25:09.237569831 -0700
@@ -797,9 +797,10 @@
                                             self.mapPriority(record.levelname))
         # Message is a string. Convert to bytes as required by RFC 5424
         if type(msg) is unicode:
+ # Morph
            msg = msg.encode('utf-8')
- if codecs:
- msg = codecs.BOM_UTF8 + msg
+ #if codecs:
+ # msg = codecs.BOM_UTF8 + msg
         msg = prio + msg
         try:
             if self.unixsocket: