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

Search Discussions

  • Mark Sapiro at Sep 7, 2012 at 12:27 am
    ** 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
  • Mark Sapiro at Jul 14, 2013 at 8:33 pm
    ** 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-coders @
categoriespython
postedSep 6, '12 at 11:36p
activeJul 14, '13 at 8:33p
posts3
users1
websitelist.org

1 user in discussion

Mark Sapiro: 3 posts

People

Translate

site design / logo © 2021 Grokbase