[Bug 1047100] [NEW] The logger can throw UnicodeEncodeError if the log message is unicode
Public bug reported: There is code in Mailman's _Syslog.write_ex() method to catch a UnicodeError when writing the log file and quoted-printable encode the log message. This works on messages that contain non-ascii, 8-bit bytes, but if the message is a unicode with non-ascii characters, the attempt to quoted-printable encode it will throw UnicodeEncodeError which is not caught. Fix this by first encoding the unicode message as utf-8 and then quoted- printable encoding that. ** Affects: mailman Importance: High Assignee: Mark Sapiro (msapiro) Status: In Progress -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1047100 Title: The logger can throw UnicodeEncodeError if the log message is unicode To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1047100/+subscriptions
** Changed in: mailman Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1047100 Title: The logger can throw UnicodeEncodeError if the log message is unicode To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1047100/+subscriptions
** Changed in: mailman Status: Fix Committed => Fix Released ** Changed in: mailman Milestone: 2.1.16 => 2.1.16rc1 -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1047100 Title: The logger can throw UnicodeEncodeError if the log message is unicode To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1047100/+subscriptions
participants (1)
-
Mark Sapiro